Author Topic: 2 questions when using JPCT  (Read 9679 times)

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
2 questions when using JPCT
« on: November 28, 2006, 09:17:07 pm »
1. will the Loader.load3DS() method load all the objects in a .3ds file? If the objects are the children objects of others.
    I find some objects in 3ds file are not loaded.
2. Some objects show sawtooth effect, how to solve it?

Thanks.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
2 questions when using JPCT
« Reply #1 on: November 28, 2006, 09:31:55 pm »
1.) No idea... :wink: There are no official specifications for 3ds file format so the loader is based on reverse engineered data from the net. I can't remember that this data was saying something about child objects nor do i have such a 3ds object. It loads multiple objects from a 3ds but if child objects are a special case or not...i simply don't know. Can you decouple the childs from their parents to see if it loads that correctly?

2.) Screenshot? I'm not sure what you are talking about.

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
ok, I've sent my screenshot to your email, please check it.
« Reply #2 on: November 28, 2006, 09:33:43 pm »
Thanks.

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
2 questions when using JPCT
« Reply #3 on: November 29, 2006, 02:18:44 am »
Ive never experienced this, and I will be using 3DS heavily.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
2 questions when using JPCT
« Reply #4 on: November 29, 2006, 04:30:09 am »
Do you mean than the shape show a sawtooth efect, or the ilumination and the "shadows"?
Nada por ahora

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
It is an anti-alias issue.
« Reply #5 on: November 29, 2006, 03:59:33 pm »
It is an anti-alias issue.
Any body has the solution in jPCT with hardware renderer?
Change the setting of hardware is not a good way to solve it.

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
2 questions when using JPCT
« Reply #6 on: November 29, 2006, 04:55:16 pm »
The COnfig class have static fields to configurate the antialias.
Nada por ahora

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
2 questions when using JPCT
« Reply #7 on: November 29, 2006, 05:03:18 pm »
Thanks, but which static field works for it?

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
2 questions when using JPCT
« Reply #8 on: November 29, 2006, 05:09:48 pm »
glMipMap I guess, I dont remember exactly because I have some propblems here, and just can write a few. definetely is the glmipmap
Nada por ahora

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
2 questions when using JPCT
« Reply #9 on: November 29, 2006, 05:15:14 pm »
You mean set the value as "Config.glMipmap = true;", but it doesn't work.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
2 questions when using JPCT
« Reply #10 on: November 29, 2006, 05:17:58 pm »
It does work, it just doesn't address edge aliasing but texture aliasing. It's a good idea to enable it anyway.

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
2 questions when using JPCT
« Reply #11 on: November 29, 2006, 05:21:11 pm »
But the fact is that if I set the value to true, all the textures look not very clear as before, and the edge aliasing does exist.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
2 questions when using JPCT
« Reply #12 on: November 29, 2006, 05:24:13 pm »
Yes, that's what it is supposed to do. Mip mapping "blurs" in the distance to prevent texture aliasing (shimmering etc.). It shows ugly banding between the mip map levels. To get rid of this, enable Config.glTrilinear=true in addition. If you still don't like it that way...well, then don't enable it but it's there for a reason. Most people prefer the slightly blurry but stable look.

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
2 questions when using JPCT
« Reply #13 on: November 29, 2006, 05:31:33 pm »
it seems that Config.glTrilinear=true is no effect. Strange.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
2 questions when using JPCT
« Reply #14 on: November 29, 2006, 05:34:12 pm »
Could be that your hardware doesn't support trilinear filtering or that you are simply not noticing it. It doesn't reduce the blur, it just smoothes the egdes between the mip map levels.