Menu

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.

Show posts Menu

Messages - nuvolanotturna

#1
Support / Re: Texture problem with software renderer
December 20, 2010, 11:58:42 PM
Yes! It works! :)

Really thank you for being so helpful! :)
#2
Support / Texture problem with software renderer
December 20, 2010, 05:09:26 PM
Hi I'm trying to use software renderer but I have some problem with textures.

Here is the result with with hardware renderer:


While this is the result with software renderer:


I've read that multi-texturing isn't supported with software renderer and I don't know if my problem has something to do with that. Actually I'm adding just one texture but I'm not sure of the meaning of "multi texturing".

Here is the code I use to add the texture:
Quote
      o = loadModel("/Developer/ProgettiEL/VITA/modelli/kosciol/kosciol.3DS", 1);
      Texture skinTex = new Texture("/Developer/ProgettiEL/VITA/modelli/kosciol/kosciol.jpg");
      TextureManager.getInstance().addTexture("kosciol", skinTex);
      o.setTexture("kosciol");

Thanks for any help
#3
Support / Re: Antialiasing with software renderer
December 20, 2010, 04:52:55 PM
Thanks. Sorry I'm new to this library, and the fact that it was working with hardware renderer was misleading.



Ps Now I have a little problem with texture but I think I'll use a new topic.
#4
Support / Antialiasing with software renderer
December 20, 2010, 03:58:09 PM
Hi, I'm trying to add antialiasing, using the software rendered, but I think I'm doing something wrong since I'm getting just a black image.

Here is my code:
Quote

 buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_OGSS);

       buffer.clear(java.awt.Color.LIGHT_GRAY);
       world.renderScene(buffer);
       world.draw(buffer);
       
       String name = "/test" + Math.random() + ".png";
       System.out.println(name);
       ImageIO.write((BufferedImage) buffer.getOutputBuffer(), "png", new File(name));

   buffer.dispose();
       



It works fine with SAMPLINGMODE_NORMAL (but "ugly"), or with hardware renderer and SAMPLINGMODE_GL_AA_4X (perfect actually).

What am I doing wrong?
Thanks for any help

Eve


Edit: I'm not getting any error in console
#5
Support / Re: Render Offscreen without showing display
December 20, 2010, 03:46:10 PM
ok..thanks :P
#6
Support / Render Offscreen without showing display
December 19, 2010, 07:58:18 PM
Hi,
I'm trying to render a 3d scene offscreen on an image. It works but (only in the case I use a hardware render) it opens a window, just for a few seconds. Is it possible to avoid the display to be shown?

Here is my code:


        buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_GL_AA_4X);
        buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
        buffer.enableRenderer(IRenderer.RENDERER_OPENGL);

        buffer.clear(java.awt.Color.LIGHT_GRAY);
        world.renderScene(buffer);
        world.draw(buffer);
       
        String name = "/test" + Math.random() + ".png";
        System.out.println(name);
        ImageIO.write((BufferedImage) buffer.getOutputBuffer(), "png", new File(name));

        buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
        buffer.dispose();


If I use the software render it does not open any window, while if I use the hardware render it opens a window and then just closes it (without showing anything). Is there some kind of configuration I can set to avoid any window to show?

Thanks for any help

Eve