Author Topic: modeling with jPCT  (Read 3202 times)

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
modeling with jPCT
« on: May 18, 2012, 09:41:40 am »
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]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: modeling with jPCT
« Reply #1 on: May 18, 2012, 10:35:12 am »
I can't open either of these files...

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
Re: modeling with jPCT
« Reply #2 on: May 21, 2012, 06:28:18 am »
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]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: modeling with jPCT
« Reply #3 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...

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
Re: modeling with jPCT
« Reply #4 on: May 23, 2012, 12:14:50 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: modeling with jPCT
« Reply #5 on: May 23, 2012, 04:33:26 pm »
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