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.

Topics - entis

Pages: [1]
Support / Camera rotation with the mouse...
« on: May 22, 2008, 03:35:45 pm »

I would like to know how camera rotation (relative to the camera center) with a mouse could be implemented in jpct (in sw renderer mode), i.e. I would like to choose direction with the mouse and only then move there with the keys (like in 3D shooter games, e.g. CS), also zooming with the mouse wheel would be great... May be someone has an example?

Thanks in advance.

Support / Camera rotation question
« on: April 16, 2008, 10:58:25 am »

I have a question about camera rotation... I would like to rotate a camera each time absolutely (i.e. rotation angle should be layed off from the world axis each time I call the rotation method) .. currently I have a problem with it. For example if I call camera.rotateY(Math.toRadians(10)) two times it will do camera rotation each time and the camera angle relative to the world Y axis will be 20 deg. not 10.

Here is what I want:
camera.rotateY(Math.toRadians(10)) // camera has been rotated on 10 deg. (relative to the world Y axis)
camera.rotateY(Math.toRadians(10)) // actually camera has been rotated on 10 deg. (relative to the world Y axis) but nothing changed on the screen since angle is 10 again
camera.rotateY(Math.toRadians(12)) // actually camera has been rotated on 12 deg. (relative to the world Y axis) but on the screen it looks like rotation on 2 deg. (relative to the old position)

So your sugestions are welcome about how can I realize this in jpct... may be it's already done in jpct?
Thanks in advance.

Support / How to draw a line...
« on: April 03, 2008, 09:54:37 am »

I would like to know how can I draw a line in jpct (like in a wireframe mode.. triangles are drawn with lines i suppose?) while I'm in a normal rendering mode.

Thanks in advance.

Support / Frame rate control
« on: March 27, 2008, 09:38:55 am »

I would like to know how can I control rendering frame rate... I want to make it not more than 25 fps. Which is the best way?

The only idea I have is to measure time before and after on rendering cycle and sleep for a time that is greater than 40 (1000/25) but this is not working as I expected (I get more than 25 frames).

Your ideas are welcome. Thanks in advance.

Support / Texture ugly look
« on: February 27, 2008, 09:38:38 am »

I have noticed that the same texture (see a ladder on the picture) placed to the different parts of an object looks very different (depending on angle/distance??)... I saw such effect even in 3DS Max... How can I impove this?


Support / With transparency sometimes polygons display order changes...
« on: February 13, 2008, 11:01:13 am »

While using transparency with sw renderer I get such a strange effect when I change my angle of view on some object - polygons display order changes, please see the picture... by the way there is no such effect when I turn off the transparency.. :(
Tell me what's wrong.. Thanks in advance.


While using sw renderer in jpct I get the following effect...

How can I make my texture be as bright as without transparency (without using additional lights)?


Support / How to make quality better in sw mode...
« on: January 29, 2008, 04:33:53 pm »

Are there some flags, tricks in jpct that will help me to make scene looks better (make pixels smaller...)... I saw the Bloodridge game and as I understood it uses sw mode only but there are some kind of "High quality" mode and in this mode it looks much better... Does anyone know how to make such a "High quality" mode in sw mode?



Could you advise me the optimal attitude between texture size in PNG file and texture size on polygon it should be (1:1 or 0.5:1 or something else...)... optimal rescaling coefficient... I mean how bad the big size textures (1:1 case) affect the productivity of jpct (in case of sw rendering)... and at the same time attitude 0.1:1 gives more productivity of jpct but affects textures quality too much... I think...



I would like to know the following things:

1. Is it possible to make shadows with jpct for the objects on scene while using sw rendering?
2. Are there some "directed" light sources in jpct (while using sw rendering)?... I mean not ambient or vertex lights but "directed" one like projector (I hope it's clear what I mean :))...


Support / How transparency could be made better while using sw renderer?
« on: January 24, 2008, 02:22:26 pm »

I have a question... While using a software renderer (Open GL mode) I have a problem with making black regions of the object transparent completely... I mean that the black regions MOSTLY disappear but not at all there are still some black color around my figure (a few black pixels are still there)  ??? (may be it's due to using anti-aliasing in textures) ... It looks bad.. I would like to know if it is possible to make it look better while using software renderer (Open GL mode) only?

Please see the picture below (the curve should be light grey with no black color)..

Thanks in advance.

Pages: [1]