Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚJava 3DÖÐÔØÈëÍⲿ3DÄ£ÐÍÎļþ

Java 3DËäÈ»ÄÜÖ§³ÖÖÚ¶àµÄÍⲿ3DÄ£ÐÍÎļþ£¬µ«ÄÜÖ§³Ö±»Java 3DʹÓõÄÍⲿģÐÍÎļþ½öΪ.objºÍ.lwdÁ½ÖÖ£»·Ö±ð¶ÔÓ¦ObjectFileÀàºÍLw3dLoaderÀà¡£Ïà±È֮ϼ¸¿îÖ÷Á÷µÄ3D½¨Ä£Èí¼þ¶¼ÄÜÉú³É.obj¸ñʽµÄÎļþ£¬Òò´Ë±¾ÎÄÖ÷Òª½éÉÜʹÓÃObjectFileÀàÔØÈë.objÎļþµÄ·½·¨¡£
ObjectFileÀàÓÐÈý¸ö¹¹Ôì·½·¨£¬·Ö±ðΪ£º
ObjectFile()
ObjectFile(int flags)
ObjectFile(int flags, float radians)
ÆäÖÐflagsΪһ¸öÕûÐ͵ij£Á¿²ÎÊý£¬ÓÃÓÚ¾ö¶¨ÔØÈëµÄ3DÄ£ÐÍÒÔʲô·½Ê½Éú³É¡£
²ÎÊýradiansÓÃÓÚ¾ö¶¨ÔØÈëÄ£Ð͵ĿÉÏÔʾ°ë¾¶¡£
flags²ÎÊý¿ÉÔÚÒÔÏÂËĸöÖµÖ®¼äÈÎÈ¡Ò»¸ö»òÕßÓÃÂß¼­»ò£¨"|"£©½«¼¸¸ö²ÎÊý×éºÏʹÓá£
ObjectFile.RESIZE£ººöÂÔ±»ÔØÈëµÄÄ£ÐÍ´óС£¬Ö±½Ó°ÑÔØÈëµÄÄ£ÐÍ·ÅÔÚÒ»¸ö·¶Î§ÔÚ(1,1,1)µ½(-1,-1,-1)Ö®¼äµÄÁ¢·½Ìå¿Õ¼äÄÚ£¬²¢°Ñ×ø±êÔ­µãÉèΪ(0,0,0)¡£
ObjectFile.REVERSE£º·´×ªÔØÈëµÄÍⲿģÐÍ£¬¼´¿ÉÄÜ¿´Ä£Ð͵ĺóÃæ¡£
ObjectFile.TRIANGULATE£º½«Ä£Ð͵ÄÃæÒÔÈý½ÇÐη½Ê½ÏÔʾ£¬´Ë²ÎÊýÖ÷Òª±ãÓÚ¹Û²ìÄ£ÐÍ°¼Í¹Ãæ¡£
ObjectFile.STRIPIFY£ºÒÔÄ£ÐÍÎļþÄÚÄ£Ð͵Äʵ¼ÊÇé¿öÏÔʾ£¬´Ë²ÎÊýÒ²ÊÇĬÈϲÎÊý¡£
µ±³õʼ»¯ÁËObjectFile¶ÔÏóºó¾Í¿ÉÒÔÓÃload·½·¨ÔØÈë.obj¸ñʽµÄÎļþ£¬Èç¹ûÄ£ÐÍÖÐÒÑ°üº¬ÁËÌùͼºÍ¹âÕյĻ°Ò²½«Ò»Æð±»ÔØÈë¡£load·½·¨ÐèÒªÒ»¸ö²ÎÊýÓÃÓÚÖ¸³ö.obj¸ñʽÎļþËùÔڵķ¾¶£¬load·½·¨Óжà¸öÖØÔØ·½·¨¿ÉÒÔʹ²ÎÊý¼´¿ÉÒÔ½ÓÊÜStringÀàµÄÖµÒ²¿ÉÒÔ½ÓÊÜUrlÀàµÄÖµ»òÕß´ÓÊäÈë·¨Á÷¶ÁÈ룬Èç¹ûÄ£ÐÍÔØÈë³É¹¦½«·µ»ØÒ»¸öSceneÀàµÄ¶ÔÏó£¬Èç¹ûÔØÈëʧ°Ü½«Å×Òì³£¡£Java 3DÕë¶Ôload·½·¨¶¨ÒåÁËÈý¸öÒì³£Àࣺ
FileNotFoundExceptionÀࣺ±íʾÎļþδÕÒµ½¡£
IncorrectFormatExceptionÀࣺ±íʾÎļþ¸ñʽ²»ÕýÈ·¡£
ParsingErrorExceptionÀࣺװÔØÆ÷½âÎöÎļþʱ³ö´í¡£
ÏÂÃæµÄ´úÂëÓÃÒÔÑÝʾÈçºÎÓÃload·½·¨½«Ò»¸öÄ£ÐÍÔØÈëµ½SceneÀàµÄʵÀý£º
Scene loadScene = null;
int flag = ObjectFile.STRIPIFY;
ObjectFile obj = new ObjectFile(flag);
try {
loadScene = obj.load(this.getClass().getClassLoader().getResource(filename));
} catch (FileNotFoundException e) {
System.out.println("ÎļþδÕÒµ½»òÎļþ·¾¶²»ÕýÈ·");
e.printStackTrace();
} catch (IncorrectFormatException e) {
System.out.println("Îļþ¸ñʽ²»ÕýÈ·");
e.printStackTrace();
} catch (ParsingErrorException e) {
System.out.println("×°ÔØÆ÷½âÎöÎļþʱ³ö´í");
e.printStackTrace();
}

ËäÈ»ÖÁ´ËÎÒÃÇÒѾ­ÔØÈëÁËÒ»¸


Ïà¹ØÎĵµ£º

JAVAÀà×°ÔØ»úÖÆ


 
Java
ÐéÄâ»úÖеÄÀà¼ÓÔØÆ÷·ÖΪÁ½ÖÖ£ºÔ­Ê¼Àà¼ÓÔØÆ÷£¨primordial class loader
£©ºÍÀà¼ÓÔØÆ÷¶ÔÏó£¨class loader objects
£©¡£
ԭʼÀà¼ÓÔØÆ÷ÊÇJava
ÐéÄâ»úʵÏÖµÄÒ»²¿·Ö£¬Àà¼ÓÔØÆ÷¶ÔÏóÊÇÔËÐÐÖеijÌÐòµÄÒ»²¿·Ö¡£²»Í¬Àà¼ÓÔØÆ÷¼ÓÔصÄÀà±»²»Í¬µÄÃüÃû¿Õ¼äËù·Ö¸î¡£
    
Àà¼ÓÔØÆ÷µ÷ÓÃÁËÐí¶àJava ......

Ó¡¶ÈÈËдµÄjava´úÂë

ÎÒÔÚÒ»¸öÓ¡¶ÈÍâ°ü¹«Ë¾¹¤×÷¡£ÎÒËù×öµÄϵͳ´ó²¿·ÖÊÇÓ¡¶È³ÌÐòԱдµÄ¡£
¿´ÁËËûÃǵĴúÂëÓиöÌصã¸ø´ó¼ÒÆÀÆÀ¡£
1¡¢ËûÃÇдµÄ´úÂë±È½ÏÑϽ÷£¬±ÈÈçÔÚÑ­»·Ò»¸ö¼¯ºÏÇ°»á×÷nullÅжϣ¬·½·¨ÀàÃüÃûÒ²±È½Ï¹æ·¶Ò׶®¡£
2¡¢ËûÃÇ£¬×¢ÊÍдµÄ²»¶à£¬µ«logдºÜÇÚ¿ì¡£
3¡¢ËûÃǺÃÏñ²»Ì«Ï²»¶ÓÃÁÙʱ±äÁ¿£¬Äܲ»Óþ¡Á¿²»Óá£
4¡¢ËûÃǵĴúÂëÈçÅжÏÒ»¸öb ......

javaÖÐʹÓÃdom4j¶ÁxmlÎļþ¼òµ¥½Ì³Ì

ÐèÒªdom4j.jarÎļþ £¬×ÔÐÐÏÂÔØ¡£ test.xml 1: <?xml version="1.0" encoding="gbk"?>
2:
3: <students>
4: <person sex="ÄÐ" age="21">
5: <id>1</id>
6: <name>ÕÂÖÎÅô</name>
7: <homepage&g ......

JAVA EXCEL API¼ò½é

      Ê¹ÓÃWindows²Ù×÷ϵͳµÄÅóÓѶÔExcel£¨µç×Ó±í¸ñ£©Ò»¶¨²»»áÄ°Éú£¬µ«ÊÇҪʹÓÃJavaÓïÑÔÀ´²Ù×ÝExcelÎļþ²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊ¡£ÔÚWebÓ¦ÓÃÈÕÒæÊ¢ÐеĽñÌ죬ͨ¹ýWebÀ´²Ù×÷ExcelÎļþµÄÐèÇóÔ½À´Ô½Ç¿ÁÒ£¬Ä¿Ç°½ÏΪÁ÷ÐеIJÙ×÷ÊÇÔÚJSP»òServlet Öд´½¨Ò»¸öCSV £¨comma separated values£©Îļþ£¬²¢½«Õ⸠......

´Ó2010Ä꿪ʼÎÒѧϰJava¼¼Êõ!

    ÔÚµ±½ñÕâ¸öʱ´ú,ÒªÏëÄܹ»ºÜºÃµÄÉú´æ,¾ÍµÃÓÐ×ã¹»µÃʵÁ¦,ÓÐÄܹ»¿¿µÄסµÄ¼¼Êõ,ÔÚ´óѧѧÁËÁ½Äê°ëµÄÈí¼þ¹¤³Ìרҵ,ÓÐÁ˺ܶàµÄÌå»á,ѧÁ˺ܶàûÓÐÓõĶ«Î÷,ÓÐһЩËäÈ»ÊǺÜÓÐÓÃ,µ±ÊÇÓÖ²»ÊÇÒ»Á½ÄêÄÚÄÜÓõÄÉϵÄ֪ʶ,ËùÒÔÎҾ͵Ã×Ôѧ,ѧʲôÄØ?ѧÓÐʹÓõö«Î÷,Äܹ»ÎªÈÕºóµÄ¹¤×÷ÓõÄÉϵÄ֪ʶ,Õâô³¤Ê±¼äµÄÌå»áºó,ÎÒ·¢Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ