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

Pages: [1]
1
Support / why render invisible object3d??
« on: August 27, 2008, 10:15:20 pm »
Hi!! a new question!!

I have next code:

Code: [Select]
              if (!wireframe)
             {                
        cursorMouse.setVisibility(false);
       
        shadowHelper.updateShadowMap();       
        buffer.clear(java.awt.Color.GRAY);       
                         shadowHelper.drawScene();                                 
             }
             else
             {
        buffer.clear(java.awt.Color.BLACK);
                     world.drawWireframe(buffer, colorWireFrame);
             }       

             buffer.update();
             buffer.displayGLOnly();
             canvas.repaint(); 
            
             cursorMouse.setVisibility(true);
        }

NOTE: CursorMouse is a Object3D instance.

Ok, the problems...

1)  I can´t switch to wireframe mode, it only draw a black screen.

2)  cursorMouse is displayed in any frames, in another frames is displayed his shadow only (but cursorMouse is not added to shadowHelper (not set to addcaster or addreciver), and in another cases, both are displayer, geometry with texture and shadow. Why? Its is set not visible before render and set visible after render. (it is always in mode non-selectable).

Thanks!!!

2
Support / Error using ShadowHelper.
« on: August 26, 2008, 06:09:09 pm »
Hi!! I have a new question ;-).

Now Iīm learning how to do shadow mapping with ShadowHelper.

I was reading "SimpleShadow.java" sample in forum. I got it and I modify it to test in a Canvas. Result was nice!!

Now, Iīm using ShadowHelper in my application and i got this message error:

ERROR: Canīt render into a texture larger than the current framebuffer.

I can use sh = new ShadowHelper(world, fb, projector, 500) or sh = new ShadowHelper(world, fb, projector, 1000);

But i canīt use sh = new ShadowHelper(world, fb, projector, 512); or sh = new ShadowHelper(world, fb, projector, 1024);

My question is: Why i canīt use 500 or 1000 size of the shadow map but i got a ERROR using 512 o 1024??

In SimpleShadow.java sample i was using "sh = new ShadowHelper(world, fb, projector, 512);" whitout error..... why?


Thanks very much!!!! ;-)

3
Support / Low fps
« on: August 24, 2008, 06:37:55 pm »
Hi!

Iīm working in a tile-style engine 3D. Main idea is render the world in a canvas instance to put this canvas in a JFrame with all buttons, labels, ect...

My problems is that with 4200 vertexs in world, its only can do between 30 or 40 frames per second.

Time delayed between buffers updates is only 25 millisecons.

Otherside, i was reading FPS sample in JPCT download section and its can up 200 frames por seconds.

ŋThere is another way to make faster hardware render into a canvas instance that iīm using?

My code example:
Code: [Select]

In object creation:

buffer = new FrameBuffer(width, height, defaultFrameBufferMode);     
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
canvas = buffer.enableGLCanvasRenderer();

In loop method:

buffer.clear(java.awt.Color.BLACK);                             
world.renderScene(buffer);
world.draw(buffer);
buffer.update();
buffer.displayGLOnly();
canvas.repaint();     



A Screenshot
[img=http://img231.imageshack.us/img231/4391/image1wd3.th.jpg]

THANKS!!!! ;-)

4
Support / Merge Object3D with extends Object3D
« on: August 11, 2008, 11:06:54 pm »
Hi!!

I have a new question! :D

I have a Terrain class defined as "Public class Terrain extends Objec3D" with constructor:

public TerrainObject3D(int numCellX, int numCellY, Object3D firstCell){
       
       super(firstCell);   
       cellsX = numCellX;
       cellsY = numCellY;
}

I need add more Object3Ds to this class to make a terrain tile style formed with individuals Objects3D merges.

If i do " Object3D.merge( <<Terrain instance >>, <<Object3D instance>>)" i recive a error! (Obviously)

there is another way to do it with Terrain class?? how works merge method??

Another question: If i merge two objects with some vertexs in same positions (x,y,z). Are itīs convertes as only one vertex, or all vertexs are stores in the returning Object3D?

Thanks very much!!!

(Sorry my english)

5
Support / Timer in example "FPS"
« on: August 10, 2008, 02:46:53 am »
I canīt found the class "Timer" with constructor "Timer(int)" (or "Timer(long)", i not sure)  used in FPS example

I have find three types of "Timer" instances in Java 1.5.0 Doc API.

All thems donīt have the "Timer(25)" constructor from FPS example included in JPCT Downloads.

ŋwhere is this class imported to that example?

Where i can find it?

Thanks!

Pages: [1]