Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - yxbnnl

Pages: [1]
1
Support / object3D pick up
« on: April 20, 2009, 03:50:27 am »
How use mouse pick up objcet3D?

2
Support / Object align(Camera) view Object
« on: April 02, 2009, 09:18:12 am »
I use to  the align(Camera) of object3D ,How can't saw object3D!

3
Support / Consider adjusting Config.maxPolysVisible!
« on: March 31, 2009, 09:15:33 am »
How to amend this warning?

[ Tue Mar 31 15:22:46 CST 2009 ] - WARNING: You've exceeded the configured triangle limit for the visibility list. Consider adjusting Config.maxPolysVisible!

Thanks!

4
Support / object merged can't control
« on: March 27, 2009, 04:45:08 am »
I try to use mergeObjects() merge an object ,but  the object can't  rotateX , rotateY , rotateZ .

5
Support / can you give me some .3ds file
« on: March 26, 2009, 10:28:24 am »
can you give me some .3ds file of man! :)
or same simple example about controlling the model of persion walking ;

thanks !

6
Support / Mouse to pick up objects
« on: March 23, 2009, 09:18:23 am »
 How to use the mouse to pick up objects in the jpct!

7
Bugs / loaderobj error
« on: March 11, 2009, 07:30:03 am »
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
   at java.lang.Runtime.loadLibrary0(Runtime.java:822)
   at java.lang.System.loadLibrary(System.java:993)
   at org.lwjgl.Sys$1.run(Sys.java:75)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
   at org.lwjgl.Sys.loadLibrary(Sys.java:84)
   at org.lwjgl.Sys.<clinit>(Sys.java:101)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:111)
   at com.threed.jpct.GLHelper.findMode(Unknown Source)
   at com.threed.jpct.GLHelper.init(Unknown Source)
   at com.threed.jpct.GLRenderer.init(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.yue.jpct.VW.main(VW.java:24)

8
Support / Object misplace
« on: March 06, 2009, 03:20:20 am »
Hi:It confused me a long time that the objects are misplaced when i load them with JPCT loader or jave 3dsloader. Most objects are not in the right place in the following figure. can you give me an advice how to solve this problem.
thanks a lot.

9
Support / loader3ds object3D setTexture
« on: March 04, 2009, 11:10:48 am »
Hi:
   I have read all  Texture defined in 3ds file and add all Texture in TextureManager.Now I want to add Texture to Object3D.But I dont know
how to select the correct Texture to Object3D.

      code:
import java.awt.Color;
import java.io.File;

import com.threed.jpct.*;

import javax.swing.*;


public class HelloWorldSoftware {

   private World world;
   private FrameBuffer buffer;
   private Object3D car3ds;
   private Object3D[] car;
   private JFrame frame;
   TextureManager  texMan  = null;
   public static void main(String[] args) throws Exception {
      new HelloWorldSoftware().loop();
   }

   public HelloWorldSoftware() throws Exception {
      //Config.saveMemory = true;
      frame=new JFrame("Hello world");
      frame.setSize(800, 600);
      frame.setVisible(true);
      frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
      
      world = new World();
      world.setAmbientLight(0, 255, 0);
      texMan=TextureManager.getInstance();
      char c=File.separatorChar;
      File dir=new File("brick_3ds");
      String[] files=dir.list();
         for (int i=0; i<files.length; i++) {
            String name=files;
            if (name.toLowerCase().endsWith(".jpg")) {
               texMan.addTexture(name, new Texture("brick_3ds/"+name));
            }
         }
      
      car=Loader.load3DS("brick_3ds/brick.3DS",0.2f);
      if(car.length != 0){
         car3ds = car[0];
         //car3ds.setTexture("plant");
         car3ds.setTransparency(2);
         car3ds.setCulling(Object3D.CULLING_DISABLED);
         car3ds.rotateX(-(float)Math.PI/2f);
         car3ds.rotateMesh();
         car3ds.setRotationMatrix(new Matrix());
         //car3ds.setAdditionalColor(new Color(100,100,100));
         car3ds.build();
      }
      world.addObject(car3ds);
      world.getCamera().setPosition(50, -50, -5);
      world.getCamera().lookAt(car3ds.getTransformedCenter());
   }

   private void loop() throws Exception {
      buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_NORMAL);

      while (frame.isShowing()) {
         car3ds.rotateY(0.01f);
         buffer.clear(java.awt.Color.white);
         world.renderScene(buffer);
         world.draw(buffer);
         buffer.update();
         buffer.display(frame.getGraphics());
         Thread.sleep(10);
      }
      buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
      buffer.dispose();
      frame.dispose();
      System.exit(0);
   }
}


Thank you

10
Support / object setTexture
« on: March 04, 2009, 08:40:35 am »
Hi:
   when I import the *.3ds files, how to find out  the relationship between Texture and Object3D .In my application,I want to use Object3D.setTexture() to build the relationship between Object3D and Texture that defined in 3ds files. 
code:
      Loading Texture...E:/个人资料/java3D资料/brick_3ds/bkmap.jpg
Loading Texture...E:/个人资料/java3D资料/mercedesSLK2004/cam_arka.bmp
[ Wed Mar 04 15:08:28 CST 2009 ] - ERROR: File 'E:/个人资料/java3D资料/mercedesSLK2004/cam_arka.bmp' not found - replacement texture used instead!
Loading file E:/个人资料/java3D资料/mercedesSLK2004/mercedes_slk.3DS
Expanding buffers...1000000 bytes
Expanding buffers...1500000 bytes
Expanding buffers...2000000 bytes
Expanding buffers...2500000 bytes
Expanding buffers...3000000 bytes
Expanding buffers...3500000 bytes
Expanding buffers...4000000 bytes
Expanding buffers...4500000 bytes
Expanding buffers...5000000 bytes
Expanding buffers...5500000 bytes
Expanding buffers...6000000 bytes
Expanding buffers...6500000 bytes
Expanding buffers...7000000 bytes
Expanding buffers...7500000 bytes
Expanding buffers...8000000 bytes
Expanding buffers...8500000 bytes
Expanding buffers...9000000 bytes
Expanding buffers...9500000 bytes
Expanding buffers...10000000 bytes
Expanding buffers...10500000 bytes
Expanding buffers...11000000 bytes
Expanding buffers...11500000 bytes
Expanding buffers...12000000 bytes
Expanding buffers...12500000 bytes
Expanding buffers...13000000 bytes
Expanding buffers...13500000 bytes
File E:/个人资料/java3D资料/mercedesSLK2004/mercedes_slk.3DS loaded...13240241 bytes
Processing new material 02 - Default!
Processing new material siyah2!
Processing new material 05 - Default!
Processing new material siyah!
Processing new material cam_on!
Processing new material zgra!
Texture named ZGARA.JPG added to TextureManager!
Processing new material Material #40!
Processing new material Material #65633!
Texture named PLAKA.BMP added to TextureManager!
Processing new material 09 - Default!
Processing new material 16 - Default!
Texture named D1.BMP added to TextureManager!
Processing new material 19 - Default!
Processing new material 17 - Default!
Texture named KONSOL.BMP added to TextureManager!
Processing new material 20 - Default!
Texture named DASH.BMP added to TextureManager!
Processing new material 21 - Default!
Processing new material 22 - Default!
Processing new material ayna!
Processing new material gri!
Processing new material 24 - Default!
Texture named VITES.JPG added to TextureManager!
Processing new material Material #65922!
Texture named S2.BMP added to TextureManager!
Processing new material Material #65910!
Processing new material cam_arka!
Processing new material cam!
Processing new material 08 - Default!
Texture named STOP3.BMP added to TextureManager!
Processing new material 11 - Default!
Texture named DOOR2.BMP added to TextureManager!
Processing new material Default!
Processing new material 10 - Default!
Texture named DOOR.BMP added to TextureManager!
Processing new material Material #65958!
Processing new material 19 - Default1!
Processing new material Material #65975!
Processing new material 22 - Default1!
Texture named DISK.BMP added to TextureManager!
Processing new material 05 - Default1!
Processing new material gri1!
Processing new material 23 - Default!
Texture named DISK2.BMP added to TextureManager!
Processing object from 3DS-file: kaput
Object 'kaput_jPCT0' created using 14832 polygons and 7869 vertices.
Processing object from 3DS-file: tampon
Object 'tampon_jPCT1' created using 25904 polygons and 13611 vertices.
Processing object from 3DS-file: camurluk
Object 'camurluk_jPCT2' created using 15728 polygons and 8237 vertices.
Processing object from 3DS-file: camurluk_a
Object 'camurluk_a_jPCT3' created using 11888 polygons and 6206 vertices.
Processing object from 3DS-file: tampon_ark
Object 'tampon_ark_jPCT4' created using 12912 polygons and 6802 vertices.
Processing object from 3DS-file: spoiler
Object 'spoiler_jPCT5' created using 9216 polygons and 4876 vertices.
Processing object from 3DS-file: dav
Object 'dav_jPCT6' created using 6160 polygons and 3280 vertices.
Processing object from 3DS-file: cam_on
Object 'cam_on_jPCT7' created using 2112 polygons and 1113 vertices.
Processing object from 3DS-file: zgara
Object 'zgara_jPCT8' created using 320 polygons and 215 vertices.
Processing object from 3DS-file: sis
Object 'sis_jPCT9' created using 43552 polygons and 23061 vertices.
Processing object from 3DS-file: Plaka
Object 'Plaka_jPCT10' created using 2624 polygons and 1341 vertices.
Processing object from 3DS-file: Plane04
Object 'Plane04_jPCT11' created using 102 polygons and 78 vertices.
Processing object from 3DS-file: Plane07
Object 'Plane07_jPCT12' created using 4832 polygons and 2539 vertices.
Processing object from 3DS-file: Object04
Object 'Object04_jPCT13' created using 12416 polygons and 6548 vertices.
Processing object from 3DS-file: Box01
Object 'Box01_jPCT14' created using 1920 polygons and 982 vertices.
Processing object from 3DS-file: Box02
Object 'Box02_jPCT15' created using 1168 polygons and 617 vertices.
Processing object from 3DS-file: Object03
Object 'Object03_jPCT16' created using 100 polygons and 66 vertices.
Processing object from 3DS-file: Object08
Object 'Object08_jPCT17' created using 3552 polygons and 1975 vertices.
Processing object from 3DS-file: Object05
Object 'Object05_jPCT18' created using 3824 polygons and 2091 vertices.
Processing object from 3DS-file: torp
Object 'torp_jPCT19' created using 26200 polygons and 14561 vertices.
Processing object from 3DS-file: konsol
Object 'konsol_jPCT20' created using 5312 polygons and 2981 vertices.
Processing object from 3DS-file: dash
Object 'dash_jPCT21' created using 2016 polygons and 1116 vertices.
Processing object from 3DS-file: Plane02
Object 'Plane02_jPCT22' created using 4 polygons and 6 vertices.
Processing object from 3DS-file: koltuk1
Object 'koltuk1_jPCT23' created using 17520 polygons and 9266 vertices.
Processing object from 3DS-file: Ayna_dikiz
Object 'Ayna_dikiz_jPCT24' created using 2176 polygons and 1135 vertices.
Processing object from 3DS-file: Anten
Object 'Anten_jPCT25' created using 1200 polygons and 624 vertices.
Processing object from 3DS-file: Box04
Object 'Box04_jPCT26' created using 3264 polygons and 1634 vertices.
Processing object from 3DS-file: pedals
Object 'pedals_jPCT27' created using 3168 polygons and 1611 vertices.
Processing object from 3DS-file: vites1
Object 'vites1_jPCT28' created using 1888 polygons and 1120 vertices.
Processing object from 3DS-file: vites2
Object 'vites2_jPCT29' created using 1872 polygons and 949 vertices.
Processing object from 3DS-file: hands
Object 'hands_jPCT30' created using 2528 polygons and 1424 vertices.
Processing object from 3DS-file: Object09
Object 'Object09_jPCT31' created using 3520 polygons and 1841 vertices.
Processing object from 3DS-file: Plane01
Object 'Plane01_jPCT32' created using 6048 polygons and 3162 vertices.
Processing object from 3DS-file: cam_arka
Object 'cam_arka_jPCT33' created using 2192 polygons and 1149 vertices.
Processing object from 3DS-file: cam
Object 'cam_jPCT34' created using 3584 polygons and 1890 vertices.
Processing object from 3DS-file: cam_kelebe
Object 'cam_kelebe_jPCT35' created using 1712 polygons and 910 vertices.
Processing object from 3DS-file: cam_cita
Object 'cam_cita_jPCT36' created using 1664 polygons and 890 vertices.
Processing object from 3DS-file: Plaka01
Object 'Plaka01_jPCT37' created using 2624 polygons and 1341 vertices.
Processing object from 3DS-file: Object02
Object 'Object02_jPCT38' created using 912 polygons and 481 vertices.
Processing object from 3DS-file: bagaj0
Object 'bagaj0_jPCT39' created using 14240 polygons and 7357 vertices.
Processing object from 3DS-file: Text01
Object 'Text01_jPCT40' created using 3692 polygons and 1854 vertices.
Processing object from 3DS-file: Arma03
Object 'Arma03_jPCT41' created using 1354 polygons and 679 vertices.
Processing object from 3DS-file: kapi
Object 'kapi_jPCT42' created using 10592 polygons and 5429 vertices.
Processing object from 3DS-file: Object07
Object 'Object07_jPCT43' created using 37232 polygons and 19851 vertices.
Processing object from 3DS-file: Object06
Object 'Object06_jPCT44' created using 1688 polygons and 952 vertices.
Processing object from 3DS-file: Plane09
Object 'Plane09_jPCT45' created using 1536 polygons and 813 vertices.
Processing object from 3DS-file: Plane08
Object 'Plane08_jPCT46' created using 3592 polygons and 1868 vertices.
Processing object from 3DS-file: ayna
Object 'ayna_jPCT47' created using 10504 polygons and 5518 vertices.
Processing object from 3DS-file: c_sutun0
Object 'c_sutun0_jPCT48' created using 5632 polygons and 2980 vertices.
Processing object from 3DS-file: Plane05
Object 'Plane05_jPCT49' created using 1344 polygons and 751 vertices.
Processing object from 3DS-file: Plane03
Object 'Plane03_jPCT50' created using 3552 polygons and 1877 vertices.
Processing object from 3DS-file: tavan0
Object 'tavan0_jPCT51' created using 4544 polygons and 2399 vertices.
Processing object from 3DS-file: ayna.ayna0
Object 'ayna.ayna0_jPCT52' created using 10504 polygons and 5514 vertices.
Processing object from 3DS-file: kapi.kapi0
Object 'kapi.kapi0_jPCT53' created using 10592 polygons and 5429 vertices.
Processing object from 3DS-file: Cylinder01
Object 'Cylinder01_jPCT54' created using 5248 polygons and 2841 vertices.
Processing object from 3DS-file: Torus01
Object 'Torus01_jPCT55' created using 28288 polygons and 14605 vertices.
Processing object from 3DS-file: Arma04
Object 'Arma04_jPCT56' created using 1354 polygons and 679 vertices.
Processing object from 3DS-file: Far
Object 'Far_jPCT57' created using 5928 polygons and 3131 vertices.
Processing object from 3DS-file: far_cam
Object 'far_cam_jPCT58' created using 1648 polygons and 857 vertices.
Processing object from 3DS-file: Arma1
Object 'Arma1_jPCT59' created using 1344 polygons and 672 vertices.
Processing object from 3DS-file: Arma2
Object 'Arma2_jPCT60' created using 116 polygons and 60 vertices.
Processing object from 3DS-file: Shape01
Object 'Shape01_jPCT61' created using 10 polygons and 7 vertices.
Processing object from 3DS-file: Lastil04
Object 'Lastil04_jPCT62' created using 10296 polygons and 5852 vertices.
Processing object from 3DS-file: Box36
Object 'Box36_jPCT63' created using 16848 polygons and 8835 vertices.
Processing object from 3DS-file: Cylinder38
Object 'Cylinder38_jPCT64' created using 4032 polygons and 2018 vertices.
Processing object from 3DS-file: Arma05
Object 'Arma05_jPCT65' created using 1354 polygons and 679 vertices.
Processing object from 3DS-file: Gengon02
Object 'Gengon02_jPCT66' created using 100 polygons and 60 vertices.
Processing object from 3DS-file: Box06
Object 'Box06_jPCT67' created using 512 polygons and 277 vertices.
Processing object from 3DS-file: Box36.Box4
Object 'Box36.Box4_jPCT68' created using 16848 polygons and 8835 vertices.
Processing object from 3DS-file: Box36.Box3
Object 'Box36.Box3_jPCT69' created using 16848 polygons and 8835 vertices.
Processing object from 3DS-file: Box36.Box0
Object 'Box36.Box0_jPCT70' created using 16848 polygons and 8835 vertices.
Java version is: 1.5.0_09
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
[ Wed Mar 04 15:08:43 CST 2009 ] - WARNING: You've exceeded the configured triangle limit for the visibility list. Consider adjusting Config.maxPolysVisible![/font]

11
Support / import 3ds file setColor
« on: March 04, 2009, 03:41:16 am »
Hi:

 My question is:
           whether now import any.3ds file, the .3ds  model shows that are green



Thank you again

12
Bugs / OutOfMemoryError: Java heap space
« on: March 03, 2009, 10:42:31 am »
Hi:
     
     
      I ’ve been experiencing OutOfMemory (heap) errors in my application when I try to load a 3ds file (5.15Mb).
     

      code:
             Loading file E:/个人资料/java3D资料/3DS.MAX.MODELS.Cars.www.9iv.com/3M01915/rsq.3DS
             Expanding buffers...1000000 bytes
             Expanding buffers...1500000 bytes
             Expanding buffers...2000000 bytes
             Expanding buffers...2500000 bytes
             Expanding buffers...3000000 bytes
             Expanding buffers...3500000 bytes
             Expanding buffers...4000000 bytes
             Expanding buffers...4500000 bytes
             Expanding buffers...5000000 bytes
             Expanding buffers...5500000 bytes
             File E:/个人资料/java3D资料/3DS.MAX.MODELS.Cars.www.9iv.com/3M01915/rsq.3DS loaded...5406158 bytes
             Processing new material 02 - Default!
             Processing new material 08 - Default!
             Processing new material 13 - Default!
             Processing new material 07 - Default!
             Processing new material 03 - Default!
             Processing new material 04 - Default!
             Processing new material 09 - Default!
             Processing new material 11 - Default!
             Processing new material 05 - Default!
             Processing new material Material #41!
             Processing new material Material #42!
             Processing new material Material #43!
             Processing new material 10 - Default!
             Processing object from 3DS-file: kaput
             Object 'kaput_jPCT0' created using 10624 polygons and 5513 vertices.
             Processing object from 3DS-file: tampon
             Object 'tampon_jPCT1' created using 13296 polygons and 6865 vertices.
             Processing object from 3DS-file: camurluk
             Object 'camurluk_jPCT2' created using 3648 polygons and 1922 vertices.
             Processing object from 3DS-file: kapi
             Object 'kapi_jPCT3' created using 9712 polygons and 5022 vertices.
             Processing object from 3DS-file: kasa
             Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

 

13
Bugs / Java heap space
« on: March 03, 2009, 09:38:35 am »
Hello:
I want to ask you a question,
The problem is:
When I use the loader3DS into my JPCT local hard drive a when.3ds file an error, error of the content is  Exception in thread "main"java.lang.OutOfMemoryError: Java heap space”, my .3ds file of local hard drive  size is 5.15 MB,.3ds file using a picture as BMP. Material texture

Waiting for your reply.

 :)thanks

Pages: [1]