473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Storing a 3D scene for

Hi Folks,

I am looking for some advice for creating a very basic 3D application -
this isn't a competitor to any other product like K-3D/Blender etc, its
just a case of me wanting to learn more so I can eventually help out
projects like K-3D.

The first thing I wanted to do was to show an empty 3D scene, so I
started thinking about how I would actually store the scene and was
after some advice on ways of doing this. My initial thought would be
to set up a 3D array of some sort containing data, but after thinking
about this I had a number of questions.

For example I am not sure how the resolution of the array would
correspond to the resolution of the final image, if I set up an array
of 640x480 to contain my data - how does this - am I correct in
thinking that if I had some sort of parser to parse my array and then
output a file based on an existing file specification, for example
POV-Ray or Renderman format then the final output would be decided by
the renderer rather than the modeller?

Another question is how do I know how large to make my array?

Is there a "standard" or common way for doing something like this? Can
anyone give me opinions on ways of doing this?

I know that there are open source application available where I can
look at the source code, but many of these applications contain so much
other code that its difficult to separate out the stuff I want from the
stuff I don't want, plus much of this code contains advanced features
that complicate things.

Thanks,

Andrew McCall

Aug 10 '06 #1
1 1327

"Andrew McCall" <an***********@gmail.comschrieb im Newsbeitrag
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi Folks,

I am looking for some advice for creating a very basic 3D
application -
this isn't a competitor to any other product like K-3D/Blender etc,
its
just a case of me wanting to learn more so I can eventually help out
projects like K-3D.

The first thing I wanted to do was to show an empty 3D scene, so I
started thinking about how I would actually store the scene and was
after some advice on ways of doing this. My initial thought would
be
to set up a 3D array of some sort containing data, but after
thinking
about this I had a number of questions.

For example I am not sure how the resolution of the array would
correspond to the resolution of the final image, if I set up an
array
of 640x480 to contain my data - how does this - am I correct in
thinking that if I had some sort of parser to parse my array and
then
output a file based on an existing file specification, for example
POV-Ray or Renderman format then the final output would be decided
by
the renderer rather than the modeller?

Another question is how do I know how large to make my array?

Is there a "standard" or common way for doing something like this?
Can
anyone give me opinions on ways of doing this?

I know that there are open source application available where I can
look at the source code, but many of these applications contain so
much
other code that its difficult to separate out the stuff I want from
the
stuff I don't want, plus much of this code contains advanced
features
that complicate things.
Here we are talking about C++ _language_. Try
comp.games.development.programming.algorithms e.g.
Aug 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan Rose | last post by:
I'm having some dififculties coming up with a good method of managing my scene. The small objects 'n stuff really aren't a problem. The problem is the big object. The terrain (most of these are...
5
by: Don Vaillancourt | last post by:
I'm building a system when one can upload a document to the website. I will be storing the document on the hard-drive for quick/easy access, but I was also thinking of storing it in an existing...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
0
by: Rich | last post by:
HowDo I script multiple buttons on one scene/frame all with different scenes? Like a menu bar across the front. Please help
0
by: berry | last post by:
I met a strange scene in my code. I succeed to call out the number i want from the database. But when I sum it up, the amount is incorrect. Even i had pop up messagebox before it do the calculation....
7
Atran
by: Atran | last post by:
Hello: I have two scenes. The problem is that the second scene is on startup the project, I mean when I test the movie: the second scene start play, and I want the first scene begin on the movie....
1
by: Elavarasi | last post by:
hi friends i am new to flash .. i have created two scene.. in scene 1 created a button.i write actionscript in actions (ie., gotoand play....) (link to scene2) when i executing it not...
3
by: akhin | last post by:
Hi First of all I am new to Flash\Actionscript and I am using CS3. I have some in main scene and also have some other in one of a movie clip's frames. I want to use a variable declared in main...
3
Jezternz
by: Jezternz | last post by:
Okay, so I have setup a scene in Java. I have 2 points. The first point is always 0,0,0. The second point is the camera position and can be any positive or negative values for x,y,z. Now what I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.