Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  BoundBox problems or doubts  (Read 447 times)
0 Members and 2 Guests are viewing this topic.
Offline baldacim

JGO n00b
*

Posts: 10



« on: 2011-05-03 20:56:03 »

I'm trying to make a boundbox for a model tacking the ends of the coordinates x, y and z of the original model. But when I apply transformations such as scale and translate the world coordinates of the object change but the bound box remains the same, how do I apply these transformations in boundbox too?? Could someone give me an idea how to make a boundbox 3D coordinates?

Thanks
Offline gouessej

JGO Kernel
*****

Posts: 3558
Medals: 30


TUER


« Reply #1 on: 2011-05-04 07:43:06 »

Look at the implementation of bounding boxes in existing engines. They store the transforms so that when the model is changed, when a transformation is applied on a model, its bounding box is updated too.

Julien Gouesse
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.058 seconds with 20 queries.