modeling with jPCT

Started by guillaume, May 18, 2012, 09:41:40 AM

Previous topic - Next topic

guillaume

hi, my colleague have give me a model which he rendered in After Effect.
and now I load the obj into jPCT and want to re-render it, but the
result is not the same. the attachment is the two rendered picture.

I got object position, and light position, and camera position from my colleague,
but I dont know how to set camera direction and orientation (I know the method,
but I dont know how to calucate the correct arguments to feed the method)

any hint(code snippet) to help me re-render the object ? thanks very much.


[attachment deleted by admin]

EgonOlsen

I can't open either of these files...

guillaume

It's strange. my program is base jPCT-PC, but seems that jPCT-PC forum can not put attachments. so I post here.
I think the principle is the same.

[attachment deleted by admin]

EgonOlsen

Depending on the exporter and the weather in southern Mordor, you might have to rotate the model after loading it. Usually, a rotateX((float)-Math.PI/2f) or rotateX((float)Math.PI/2f) does the trick. I'm not entirely sure if this will help here though, because it's hard to tell which part of earth we are looking at...

guillaume

Quote from: EgonOlsen on May 21, 2012, 09:00:27 PM
Depending on the exporter and the weather in southern Mordor, you might have to rotate the model after loading it. Usually, a rotateX((float)-Math.PI/2f) or rotateX((float)Math.PI/2f) does the trick. I'm not entirely sure if this will help here though, because it's hard to tell which part of earth we are looking at...

     I am wonder if the modeler can give me all the parameters , such as model position, light position, camera position & direction,
so I just fill the parameter to jPCT, and jPCT can render the model.
     the problem is that the parameter used in After Effect to render to the model, deffers from the paramters used in jPCT,
I am not very sure how to convert the parameter between this two software.
    anyway, merely try every parameter and expect to get the desired result is not that smart.

EgonOlsen

OBJ-format doesn't store this information. 3DS does in theory but as much as tried to make any sense of the information in the file, i never managed to read it properly...mainly caused by the lack of documentation for that part of the format. So currently, there's no option to read this data from a file.

Can you access the numeric data inside After Effect? If so, it should be possible to figure out how you change it to match jPCT's coordinate system (assuming that the exporter doesn't change  object space on its own): http://www.jpct.net/wiki/index.php/Coordinate_system