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 - Klaudiusz

Pages: 1 2 3 [4] 5
46
Support / setRenderTarget() method in OpenGL mode for every frame
« on: August 07, 2007, 09:56:16 am »
Hi,

I would like to use mirrored env on the object. Could i ask You for little guide how to do it fast in hardware mode? There is not too much informations on the forum.

Is the frame rendered directly to the texture in OpenGL mode? Or the data it is copied/modified?

Could you provide some simple source code?

Thanks

47
Bugs / Bad lighting when object has more than one texture
« on: July 29, 2007, 09:24:36 pm »
Hi,


Lights works only on one texture, not on all when object has more of them.

For example, when i use UV texture as first one and  ENV texture as second, only ENV is lighten.

see attached screenshots:

1. Two the same objects. One with UV+ENV and secound with UV only, very neer of the light source (light position is camera position)




2. The same situation but both objects are far away of the light. UV texture of the first object has been not changed, ENV texture disapeard. Secound object is black (too far of the light).



The effect is bad because objects placed away of the light source are still bright.

48
News / Re: Happy birthday!
« on: July 23, 2007, 09:46:43 am »
This is a huge work. And i think jpct has a future.

Thanks Egon.

49
Support / Re: cloneObject() and setRotationPivot - what's wrong?
« on: June 30, 2007, 07:48:16 pm »
I used setRotationPivot after build .... everything is OK! :)

Thank You

50
Support / Re: cloneObject() and setRotationPivot - what's wrong?
« on: June 29, 2007, 11:31:29 pm »
Yes, ofcourse.

Have a look at my source test object:




Well i have defined SourceObject and i clone him:

Code: [Select]
....
ClonedObject= SourceObject.cloneObject();
SourceObject.build();
ClonedObject.build();
theWorld.addObject(SourceObject);
theWorld.addObject(ClonedObject);

The result can You see below. Both object are transparenced, rotated by X Angle:






But the result is bad because i had no centered object. I have to use the Pivot:


Code: [Select]
....
ClonedObject= SourceObject.cloneObject();
SourceObject.setRotationPivot(new SimpleVector(0, 0, 0));
ClonedObject.setRotationPivot(new SimpleVector(0, 0, 0));
SourceObject.build();
ClonedObject.build();
theWorld.addObject(SourceObject);
theWorld.addObject(ClonedObject);


The same situation, maybe little differend camera only:






My Souce Object is rotated correctly (his one end stay in the same place), but ClonedObject behaviour has not changed...


51
Support / cloneObject() and setRotationPivot - what's wrong?
« on: June 29, 2007, 09:17:44 pm »
Hi,

I have the source object and i just use cloneObject(). Everything is OK until i use simply setRotationPivot(new SimpleVector(0, 0, 0)) for each of them. The source object is modified OK, but there is no difference in cloned object behaviour. Should i use some additional method for clone the object?

Thank You in advice.

52
Bugs / cloneObject() and TRANSPARENCY_MODE_ADD
« on: June 28, 2007, 09:30:49 pm »
It's a detail, but You should know it.

if source object has TRANSPARENCY_MODE_ADD (added in last jpct version), cloneObject doesn't copy this. It's copies transparency but sets TRANSPARENCY_MODE_DEFAULT.

53
Bugs / TextureInfo.MODE_REPLACE don't work
« on: June 27, 2007, 12:35:45 am »
Hi,

When i use UV+Env both textures with TextureInfo.MODE_REPLACE ... its showed UV Texture only. I think this mode does nothing.

54
News / Re: Currently working on...
« on: June 27, 2007, 12:27:19 am »
 :o Shadows in java :) This is great:)

55
Support / Re: Reflection efect
« on: June 16, 2007, 10:43:01 pm »
Well i just found there is also:

Quote
CurrentObject.calcTextureWrapSpherical();

Very usefull in reflection effect,when You don't have UV. GJ Egon:)

56
Support / Re: Problem with independlent setting coordinaties
« on: June 16, 2007, 10:35:52 pm »
OK, thank You. I'll try, as You advised before, clear the matrix and rotate x,y,z.

57
Support / Re: Problem with independlent setting coordinaties
« on: June 16, 2007, 09:00:49 pm »
It's X,Y and Z Angles

58
Support / Re: Problem with independlent setting coordinaties
« on: June 16, 2007, 08:12:25 pm »
How can i translate (PIx,PIy,PIz) to SimpleVector(x,y,z) ? It could solve my problem.

59
Support / Re: AdditionalColor directly from Loader?
« on: June 16, 2007, 08:02:11 pm »
Great. Thanks

60
Support / AdditionalColor directly from Loader?
« on: June 16, 2007, 07:30:39 pm »
Hi,

Can loader read the color information for every part of object3d (i mean 3ds file)?
I know it is possible to set it by hand,but maybe there is a way to set it automatically? It could be usefull, sometimes only color+gouraund shading is enought for me.

Pages: 1 2 3 [4] 5