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.


Messages - nico_r_a

Pages: 1 [2] 3 4
16
Support / Re: How can I serialize a mesh?
« on: August 08, 2011, 02:02:39 pm »
yes i have read your mail, thanks
sorry but i don't know how i serialize the file, when i delete  [ 0 ], i have an error in my line?

17
Support / Re: How can I serialize a mesh?
« on: August 08, 2011, 11:12:23 am »
i have loaded to try your file hose_poser.obj (convert in 3ds), and i see only the "hip:2 hip" in the emulator android. (the hip:2 hip is white and the rest is blue)
why? i write this in the application java to create the ser
Code: [Select]
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.threed.jpct.DeSerializer;
import com.threed.jpct.Loader;
import com.threed.jpct.Object3D;
import com.threed.jpct.Texture;
import com.threed.jpct.TextureManager;
//import java.awt.Color;

public class Main {


    public static void main(String[ ] args)  throws FileNotFoundException {
        Object3D hose_poser = null;
 
        DeSerializer de;
       hose_poser = Loader.load3DS("C:/workspace/file/res/raw/hose_poser3ds",20)[0];
       hose_poser.build();
        de = new DeSerializer();
        de.serialize(hose_poser, new FileOutputStream("C:/workspace/file/res/raw/serhose_poser.ser"), true);
               
    }
}


May be it 's in my application android??
should i write in my code android something in rapport with the loading of all the object in ser, because i have writen only this

Hoseposer = Loader.loadSerializedObject(getResources().openRawResource(R.raw.serhose_poser));

18
Support / Re: How can I serialize a mesh?
« on: August 05, 2011, 11:03:24 am »
ok, i have resolved the problem with the merge.
but my scene is still blue (like the sky), this is the light??
"
if (master == null) {

            world = new World();
            world.setAmbientLight(250, 250, 250);

            sun = new Light(world);
            sun.setIntensity(20, 20, 20);
            

19
Support / Re: How can I serialize a mesh?
« on: August 05, 2011, 10:20:43 am »
i have send a message
but i have another problem when i load my 3ds file without used the serialization, the application is not load in the emulator and in my logcat
i have this
"
08-05 08:20:55.532: INFO/jPCT-AE(426): Object 'Car2_jPCT40' created using 204 polygons and 104 vertices.
08-05 08:20:55.532: INFO/jPCT-AE(426): Processing object from 3DS-file: Car2
08-05 08:20:55.572: INFO/jPCT-AE(426): Object 'Car1_jPCT41' created using 204 polygons and 104 vertices.
08-05 08:20:55.585: INFO/jPCT-AE(426): [ 1312532455586 ] - ERROR: Can't merge null!
08-05 08:20:55.612: WARN/dalvikvm(426): threadid=9: thread exiting with uncaught exception (group=0x40014760)
08-05 08:20:55.612: ERROR/AndroidRuntime(426): FATAL EXCEPTION: GLThread 10
08-05 08:20:55.612: ERROR/AndroidRuntime(426): java.lang.RuntimeException: [ 1312532455586 ] - ERROR: Can't merge null!
08-05 08:20:55.612: ERROR/AndroidRuntime(426):     at com.threed.jpct.Logger.log(Logger.java:189)
08-05 08:20:55.612: ERROR/AndroidRuntime(426):     at com.threed.jpct.Object3D.mergeObjects(Object3D.java:476)
08-05 08:20:55.612: ERROR/AndroidRuntime(426):     at com.mm.file4$MyRenderer.loadModel(Ovip.java:499)
08-05 08:20:55.612: ERROR/AndroidRuntime(426):     at com.mm.file4$MyRenderer.onSurfaceChanged(Ovip.java:228)
08-05 08:20:55.612: ERROR/AndroidRuntime(426):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1422)
08-05 08:20:55.612: ERROR/AndroidRuntime(426):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1184)
"

20
Support / Re: How can I serialize a mesh?
« on: August 04, 2011, 02:57:45 pm »
but some texture are large 1024*1024, there are not problem with this dimension?

scene = Loader.load3DS("C:/workspace/file4/res/raw/scene.3ds", 300)[0];

the "300" and the "0" mean what???
thanks

21
Support / Re: load a .obj file in JPCT-AE demo
« on: August 04, 2011, 02:15:48 pm »
i have this in my console
[2011-08-04 14:19:07 - file4] res\raw\scene.mtl:0: error: Resource entry scene is already defined.
[2011-08-04 14:19:07 - file4] res\raw\scene.3ds:0: Originally defined here.
[2011-08-04 14:19:07 - file4] res\raw\tempera.mtl:0: error: Resource entry tempera is already defined.
[2011-08-04 14:19:07 - file4] res\raw\tempera.3ds:0: Originally defined here.
what shoud i do?

22
Support / Re: How can I serialize a mesh?
« on: August 04, 2011, 01:52:58 pm »
yes it's done , i have uploaded the library with the new version alpha. but i have still the same problem

23
Support / Re: object pivot
« on: August 04, 2011, 12:13:35 pm »
i try to turn an object, and i load 3 object in 3ds (i think the problem is to define each object)
but in my log cat i have this

08-04 10:15:41.234: WARN/dalvikvm(395): threadid=9: thread exiting with uncaught exception (group=0x40014760)
08-04 10:15:41.234: ERROR/AndroidRuntime(395): FATAL EXCEPTION: GLThread 10
08-04 10:15:41.234: ERROR/AndroidRuntime(395): java.lang.NullPointerException
08-04 10:15:41.234: ERROR/AndroidRuntime(395):     at com.mm.Ovip$MyRenderer.onSurfaceChanged(Ovip.java:359)
08-04 10:15:41.234: ERROR/AndroidRuntime(395):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1422)
08-04 10:15:41.234: ERROR/AndroidRuntime(395):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1184)
08-04 10:15:41.285: WARN/ActivityManager(81):   Force finishing activity com.mm/.Ovip
08-04 10:15:41.297: WARN/WindowManager(81): Failure taking screenshot for (230x135) to layer 21015

24
Support / Re: How can I serialize a mesh?
« on: August 04, 2011, 12:10:58 pm »
but i have a problem same with the new version
what sould i write ?

if i write only this and i place the ser in the rawx it s good??

private Object loadModel(InputStream filename, InputStream mtl, float scale) {
//Object3D[] model = Loader.load3DS(filename, scale);
scene = Loader.loadSerializedObject(getResources().openRawResource(R.raw.serscene));
// Object3D[] model = Loader.loadOBJ(filename, mtl, scale);

25
Support / Re: How can I serialize a mesh?
« on: August 04, 2011, 10:40:54 am »
ok, it s great i have create a file ser, thanks for the advice java tutorial
but in my project android i write this it's all??
scene = Loader.loadSerializedObject(res.openRawResource(R.raw.serscene));

i don't write this??
   private Object loadModel(InputStream filename, InputStream mtl, float scale) {
         Object3D[] model = Loader.load3DS(filename, scale);

because when i load the ser in the android with "the scene = loader.loadserial......."
In the logcat i have this
"08-04 08:57:05.143: INFO/jPCT-AE(454): [ 1312448225150 ] - ERROR: Unsupported version: 2
08-04 08:57:05.174: INFO/jPCT-AE(454): [ 1312448225175 ] - ERROR: Can't deserialize object: [ 1312448225150 ] - ERROR: Unsupported version: 2"

26
Support / Re: How can I serialize a mesh?
« on: August 03, 2011, 04:03:13 pm »
sorry but i don't arrive to realize. Because i am not a good person with eclipse.
so i do " create java project", and i after i have a library "jre system library" and a folder "src".
after i create a class, but what is the "mainmethod"??
could you give more detail to realisation ?
thank you very much

27
Support / Re: How can I serialize a mesh?
« on: August 03, 2011, 11:26:29 am »
i have downloaded the "jpctapi" but i don't know what i have to open to serialize an object.
so what is the procedure?
how do you use the "jpct api"? with "eclipse jee"? because eclipse don't find a project in "jpctapi"
where do you write this sentence "new DeSerializer().serialize(yourObject3D, someOutputStream, true);"??
thank you

28
Support / Re: load a .obj file in JPCT-AE demo
« on: August 03, 2011, 09:16:33 am »
ok, but i can t give this file
thank you for the advices, i am going to try to improve my file.

i can convert my file in 3ds but are there another type which is better to load in the android?
and can you help me on the question who are on this topic please "Re: How can I serialize a mesh?"

29
Support / Re: load a .obj file in JPCT-AE demo
« on: August 02, 2011, 05:30:58 pm »
but my file obj have 80 objects

30
Support / Re: load a .obj file in JPCT-AE demo
« on: August 02, 2011, 04:54:48 pm »
a acer stream

and i have 14000 vertices
and 15000 faces
so it's lot?

Pages: 1 [2] 3 4