GIDForums  

Go Back   GIDForums > Computer Programming Forums > OpenGL Programming
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-May-2009, 15:23
aussteve aussteve is offline
New Member
 
Join Date: May 2009
Posts: 1
aussteve is on a distinguished road

Choosing glFrustum parameters??


I have a scene consisting of some cubes.I want to interactively view it by changing viewpoint(And camera orientation).I had found similar opengl program for projection transformation and understand the program to a large extent.I am slightly confused about choosing parameters of glFrustum for my purpose.
My all cubes are lying in the xy plane .My all cubes are lying within the rectangular box with opposite coordinates as follows (-500,-500,250)and(500,500,250) .Plz suggest me some appropriate value of parameters for glfrustum.Thanks in advance.
  #2  
Old 09-Feb-2017, 13:29
divitorobert divitorobert is offline
New Member
 
Join Date: Feb 2017
Posts: 5
divitorobert is on a distinguished road

Re: Choosing glFrustum parameters??


Setting a glFrustum isn't adequate since it only controls the shape of the viewing frustum that is going to be viewed. glFrustum is supposed to be used to control the projection matrix. You should also position the camera correctly by modifying the modelview matrix. This information should also help you determine the appropriate parameters,
http://www.glprogramming.com/red/chapter03.html
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default parameters ajbharani C++ Forum 13 15-Dec-2007 14:32
Callback parameters edt C++ Forum 8 30-Aug-2006 09:35
Hosting Article: Ten "Golden Rules" To Follow When Choosing An Web Host fcolor Web Hosting Forum 0 10-Dec-2004 06:41
Re: Command Line Arguments, Part 1 WaltP C Programming Language 0 10-Jul-2004 23:34
Using void for Constructor and Deconstructor Parameters? BobbyMurcerFan C++ Forum 4 16-Jun-2004 18:23

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:59.


vBulletin, Copyright © 2000 - 2017, Jelsoft Enterprises Ltd.