Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Immediate-Mode Rendering

Thread view: 
George - 02 Dec 2005 17:38 GMT
Hi everyone,

i wrote a rendering methode but i want to change it to Immediate-Mode
Rendering using java3D
could anyone help me and tell me how?
here is my render function that i want to change into  Immediate-Mode
Rendering

public void render( Scene scene )
    {
        Viewport eye = new Viewport( scene.viewpoint, 0, 0, width, height );
        double daa = 1.0 /antialias;

        gc = canvas.getGraphicsContext3D();

        for (int y=0; y < height; y++)
            for (int x=0; x < width; x++)
            {
                DColor color = new DColor( 0.0, 0.0, 0.0, daa*daa );

                for (int sy=0; sy < antialias; sy++)
                    for (int sx=0; sx < antialias; sx++)
                        scene.trace( eye.ray( x + sx*daa, y + sy*daa ),
                                    color, 0 );

                putPixel( x, y, color.getRGB() );
            }

        flush();
    }
}
George - 03 Dec 2005 01:30 GMT
still waiting for answer,
thanks in advance
Chris Smith - 03 Dec 2005 02:22 GMT
> still waiting for answer,

You've asked a question that may be outside of the common knowledge of a
lot of people here.  I, for example, am just learning Java3D in any
depth, and immediate mode looks interesting but I don't know anything
about it.  You may have to wait several days for someone to read your
post who knows the answer.  Although questions are sometimes answered
very quickly here, EXPECTING an answer in only a few hours is often
considered rude.

There is a newsgroup called comp.lang.java.3d.  I didn't see it in your
distribution list.  You might get faster and better responses there.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

George - 04 Dec 2005 12:15 GMT
thanks ,  i will ask there
Roedy Green - 03 Dec 2005 03:23 GMT
>still waiting for answer,

oops. See http://mindprod.com/jgloss/newsgroups.html

You likely just got yourself blacklisted.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.