Jump to content
Join our Facebook Group ×
An Old School Catholic Message Board

3d Rendering And Related Subjects


Recommended Posts

Laudate_Dominum
Posted

Are there any phatmassers who are into 3D rendering, in particular real-time rendering? I'm working on another project and I'm realizing that I should take the heavy HLSL approach and I thought it would be cool to talk to someone who is into such things. Anyone? Just curious.

Peace.

Posted

I'm not into 3D-rendering, but I am into Jesus. I hear He's into me too.

Thy Geekdom Come
Posted
:mellow: I've used Google Sketch-up to make 3-D models of churches...does that count, or are you looking for like a 3-D Magic Eye sort of thing...?

:unsure:
Laudate_Dominum
Posted

Ok, the biggest thing that I'm grappling with in my mind is how to seemlessly render a massive world (a planet basically) and eventually create a tool that will allow me to quickly design (generate really) hundreds of planets that can be rendered in extreme detail (for real-time rendering anyway). I have a theoretical idea in mind which will involve multi-stage binary space partitioning for closer views and the surfaces will be rendered using primarily texture splatting techniques and parallax mapping (probably) but I'm not yet at the point of really fleshing out all the details. So many problems....

Thy Geekdom Come
Posted

[quote name='Laudate_Dominum' post='1406529' date='Oct 21 2007, 11:30 AM']Ok, the biggest thing that I'm grappling with in my mind is how to seemlessly render a massive world (a planet basically) and eventually create a tool that will allow me to quickly design (generate really) hundreds of planets that can be rendered in extreme detail (for real-time rendering anyway). I have a theoretical idea in mind which will involve multi-stage binary space partitioning for closer views and the surfaces will be rendered using primarily texture splatting techniques and parallax mapping (probably) but I'm not yet at the point of really fleshing out all the details. So many problems....[/quote]
Okay, see...I use straight lines, an occasional pylon, and arches...and that about takes up all the RAM on my computer...so...

Laudate_Dominum
Posted

[quote name='Raphael' post='1406522' date='Oct 21 2007, 10:22 AM']:mellow: I've used Google Sketch-up to make 3-D models of churches...does that count, or are you looking for like a 3-D Magic Eye sort of thing...?

:unsure:[/quote]
I found out about that program pretty recently and thought it was interesting (seems like they do some original things behind the scenes). The least of my problems right now is creating meshes, I'm trying to design a rendering engine that will allow me to create a Star Trek like astrometrics application. I'm hoping to find someone to talk to about the techniques, algorithms and theory of 3D rendering. I've done some stuff to date but the concept app I have in mind is very demanding in terms of what is actually practical on today's common hardware.

Laudate_Dominum
Posted

[quote name='Raphael' post='1406532' date='Oct 21 2007, 10:33 AM']Okay, see...I use straight lines, an occasional pylon, and arches...and that about takes up all the RAM on my computer...so...[/quote]
lol. yeah, if computers were as advanced as the stuff in Star Trek this astrometrics program would hardly be a challenge. I thought my computer was pretty phat (I shelled out for a dope graphics card) but I find it all too easy to come up with a scene that my machine can't render at more then two or three frames per second. hehe

One thing I created rendered at like 0.02 frames per second. *rolls eyes* Ok, that was a stupid experiment anyway..

I know there are methods and tricks that can work wonders but I don't have the experience to think of everything straight away. Sometimes I spend many long hours doing trial and error experiments just trying to achieve a minor effect with some practicality. :( Maybe this is just the nature of the beast?

Laudate_Dominum
Posted

[quote name='Raphael' post='1406522' date='Oct 21 2007, 10:22 AM']:mellow: I've used Google Sketch-up to make 3-D models of churches...does that count, or are you looking for like a 3-D Magic Eye sort of thing...?

:unsure:[/quote]
Hey, that's actually really sweet! I didn't know you were into such things. Are you thinking of becoming a designer or was this just a one time hobby thing?

Laudate_Dominum
Posted

One of the killer issues that I've yet to think about too much is the rendering of atmospheric effects so if anyone has any experience and/or ideas that would be sweet. I'll probably be forced to go skimpy in this department the way things are looking.

Posted

I've spent the last twelve years working in real-time 3D graphics...:)

Laudate_Dominum
Posted

[quote name='Mateo el Feo' post='1406575' date='Oct 21 2007, 12:45 PM']I've spent the last twelve years working in real-time 3D graphics...:)[/quote]
Yay!!!!!!!!! We should rap. What's your bag? games perhaps? I'm curious to know the details.. The project I'm working on now is for the Windows platform and I'm using DirectX.

Peace.

Posted

I've used auto-cad...like the real thing

Posted

[quote name='Laudate_Dominum' post='1406579' date='Oct 21 2007, 02:54 PM']Yay!!!!!!!!! We should rap. What's your bag? games perhaps? I'm curious to know the details.. The project I'm working on now is for the Windows platform and I'm using DirectX.

Peace.[/quote]Most of my experience is in ground and flight simulation. My specialties are terrain modeling and avoinics.

Hopefully, I can be of some help. Let me comment on some bits and pieces of your post:

[b]1) Generate hundreds of planets[/b]
You could do this in a few ways. Off the top of my head:[list]
[*]You could create your own stand-alone tool to write out to some known 3D file format.
[*]Many of the 3D modeling tools have their own scripting languages and/or APIs to interface with their native data structures.
[*]You could create a custom application that handled this programatically on top of a graphics API like DirectX, OpenGL, or something at a higher level (e.g. Open Scene Graph).
[/list]
[b]2) Seemlessly render a massive world (a planet basically)[/b]
Did you ever notice that most 3D games make people play in discrete play areas? For example, I play Battlefield2 which keeps a player in an area approximately 1-2 km on a side. There is a reason for this.

On the other hand, we've got GoogleEarth and its imitators (e.g. MS Virtual Earth) which allow us to fly around the world, but they impose some pretty rigid structure to their data in order to preserve rendering rates.

When the brute force of a graphics card can't be relied on, one has to invent tricks to manage all the 3D data. That's probably the best way to describe an experienced 3D programmer--as someone having a bag of tricks.

[b]3) HLSL[/b]
I've not used this, but I've had a little exposure to nVidia's Cg...not enough to speak authoritatively on the subject, though.

It may be my prejudices coming out, but I think that this level of graphics programming can usually be avoided. Ideally, existing scene graphs and 3D modelling tools will provide the hooks to leverage this technology without actually having to hand-write code/script at this level.

[b]4) Parallax Mapping[/b]
I always thought this was a neat technique for adding complexity (or at least the appearance) to a scene. I don't know to what extent existing off-the-shelf tools support using this technique.

[b]5) Atmospheric effects [/b]
This is not something I've spent too much time with. Usually, my projects get by with some uniform fog (i.e. not volumetric) and maybe some rain effects. I'll give you the following webpage which has a bunch of related links:

[url="http://vterrain.org/Atmosphere/"]http://vterrain.org/Atmosphere/[/url]

The main page (http://vterrain.org) is worth a look as well.

Thy Geekdom Come
Posted

[quote name='Laudate_Dominum' post='1406538' date='Oct 21 2007, 11:44 AM']Hey, that's actually really sweet! I didn't know you were into such things. Are you thinking of becoming a designer or was this just a one time hobby thing?[/quote]
Most of my life, I wanted to be an architect. :) It remains a hobby of mine. I really wish I had a copy of autocad so I could play around on it in my free time, but it's too expensive. I took some drafting courses in high school and the teacher was a Catholic, so he gave me enough slack when I was a senior to come in and design stuff for fun. I spent the whole year designing the floor plan and frontal view for a cathedral...it had a colonnade, a rotunda, a very large nave (seated a couple thousand), two bell towers. It was pretty sweet. One of my dreams is to build a little oratory in my backyard some day. Actually, one of my dreams is to run a Catholic retreat center, so I'd probably design and build a church there.

The rotunda has one column for each book of the Scriptures (I think if a Protestant tried to take over and knock seven out, it might collapse, lol), the Pater Noster above the front doors, etc. The rotunda does look a bit like the US Capitol, which was on purpose because I didn't know many other good models. The whole structure is in marble, except the belltowers are in cobblestone (not the best mix, but I liked it at the time). Oh, and the foundation is built of 12 stones and there are nine levels to the rotunda (for the 9 choirs of angels). The front of the church (on the inside) is a parabolic shape to help sound amplification.

[img]http://img.photobucket.com/albums/v172/PrRaphael/Cathedral.jpg[/img]

Laudate_Dominum
Posted

[quote name='Mateo el Feo' post='1406602' date='Oct 21 2007, 02:11 PM']Most of my experience is in ground and flight simulation. My specialties are terrain modeling and avoinics.

Hopefully, I can be of some help. Let me comment on some bits and pieces of your post:

[b]1) Generate hundreds of planets[/b]
You could do this in a few ways. Off the top of my head:[list]
[*]You could create your own stand-alone tool to write out to some known 3D file format.
[*]Many of the 3D modeling tools have their own scripting languages and/or APIs to interface with their native data structures.
[*]You could create a custom application that handled this programatically on top of a graphics API like DirectX, OpenGL, or something at a higher level (e.g. Open Scene Graph).
[/list][/quote]

I intend to create a custom application that will have different modes for creating different kind of game assets. Planets will be pretty simple because it will start with a generic sphere mesh (I'll use progressive mesh techniques in-game). Basically I intend to work out a format for planets and other typical space bodies but for planets I assume there will be functionality for creating and blending the base texture(s) followed by a tool for specifying some parameters and generating a cloud layer and finally a tool for defining any atmospheric effects and other final details (the parallax mapping for example if that's what I end up going with). There will be other meta-data related to the game that can be specified as well such as the name of the planet, its class (per the Star Trek classifications), if and how it rotates, etc. I'll probably just create a proprietary format which will define the planet in such a way that the vertex and index data can be generated and optimized on the fly and the materials and textures will be serialized in a binary form within the file itself.
I don't own, nor can I afford, any of the industry standard modeling tools so I'm already pretty accustomed to creating custom tools for doing things that would otherwise come 'out of the box' for professionals. I suppose it is part of the fun of these kind of projects for me.



[quote name='Mateo el Feo' post='1406602' date='Oct 21 2007, 02:11 PM'][b]2) Seemlessly render a massive world (a planet basically)[/b]
Did you ever notice that most 3D games make people play in discrete play areas? For example, I play Battlefield2 which keeps a player in an area approximately 1-2 km on a side. There is a reason for this.

On the other hand, we've got GoogleEarth and its imitators (e.g. MS Virtual Earth) which allow us to fly around the world, but they impose some pretty rigid structure to their data in order to preserve rendering rates.

When the brute force of a graphics card can't be relied on, one has to invent tricks to manage all the 3D data. That's probably the best way to describe an experienced 3D programmer--as someone having a bag of tricks.[/quote]
Yeah, I've been pondering the kind of restrictions that will have to be in place because in the end the cost is just too high on the kind of realism that I'd like to have and I don't know that its really worth it since it is a game and not a full fledged simulation of reality.
I'm thinking of introducing two modes where one involves a complete view of the planet from a distance and the other is a kind of "orbit mode" where only a portion of the planet is visible but a higher tessellation, higher resolution planet is feasible. It wouldn't have the smooth and seamless experience that would be ideal, but compromises no doubt have to be made.


[quote name='Mateo el Feo' post='1406602' date='Oct 21 2007, 02:11 PM'][b]3) HLSL[/b]
I've not used this, but I've had a little exposure to nVidia's Cg...not enough to speak authoritatively on the subject, though.

It may be my prejudices coming out, but I think that this level of graphics programming can usually be avoided. Ideally, existing scene graphs and 3D modelling tools will provide the hooks to leverage this technology without actually having to hand-write code/script at this level.[/quote]
Since I'm basically creating a custom rendering engine from scratch I think it would be a big mistake to avoid HLSL. I've noticed that the more recent DirectX SDK documentation has been extremely HLSL-centric which suggests to me that this is pretty much the way to go.

[quote name='Mateo el Feo' post='1406602' date='Oct 21 2007, 02:11 PM'][b]4) Parallax Mapping[/b]
I always thought this was a neat technique for adding complexity (or at least the appearance) to a scene. I don't know to what extent existing off-the-shelf tools support using this technique.[/quote]
I know how to write a shader which uses a heightmap texture to pull of the effect but since my original post I've come to question using this technique at all. I'll need to fiddle around and see what works and what I like.

[quote name='Mateo el Feo' post='1406602' date='Oct 21 2007, 02:11 PM'][b]5) Atmospheric effects [/b]
This is not something I've spent too much time with. Usually, my projects get by with some uniform fog (i.e. not volumetric) and maybe some rain effects. I'll give you the following webpage which has a bunch of related links:

[url="http://vterrain.org/Atmosphere/"]http://vterrain.org/Atmosphere/[/url]

The main page (http://vterrain.org) is worth a look as well.[/quote]
Awesome! Thanks a lot for this, that is exactly the kind of thing I need. There seems to be plenty there to keep me busy for a while. :)

I'm still very stoked that you're into this stuff! What applications do you prefer to work with? I have a bunch of crappy home grown utilities that I use to do things but combined they probably amount to less than 25% of what you could do with 3ds max or maya. :(

Laudate_Dominum
Posted

[quote name='Raphael' post='1406607' date='Oct 21 2007, 02:21 PM']Most of my life, I wanted to be an architect. :) It remains a hobby of mine. I really wish I had a copy of autocad so I could play around on it in my free time, but it's too expensive. I took some drafting courses in high school and the teacher was a Catholic, so he gave me enough slack when I was a senior to come in and design stuff for fun. I spent the whole year designing the floor plan and frontal view for a cathedral...it had a colonnade, a rotunda, a very large nave (seated a couple thousand), two bell towers. It was pretty sweet. One of my dreams is to build a little oratory in my backyard some day. Actually, one of my dreams is to run a Catholic retreat center, so I'd probably design and build a church there.

The rotunda has one column for each book of the Scriptures (I think if a Protestant tried to take over and knock seven out, it might collapse, lol), the Pater Noster above the front doors, etc. The rotunda does look a bit like the US Capitol, which was on purpose because I didn't know many other good models. The whole structure is in marble, except the belltowers are in cobblestone (not the best mix, but I liked it at the time). Oh, and the foundation is built of 12 stones and there are nine levels to the rotunda (for the 9 choirs of angels). The front of the church (on the inside) is a parabolic shape to help sound amplification.

[img]http://img.photobucket.com/albums/v172/PrRaphael/Cathedral.jpg[/img][/quote]
Dude, that's sweeeeet! I wonder if there are any free programs that are comparable to the x-thousand dollar programs? Maybe you could help me make this game? ;) j/k, I know you're super busy, that would be phat though.

Laudate_Dominum
Posted

I wish video cards could all handle 16384x16384 textures... hehe

Thy Geekdom Come
Posted

[quote name='Laudate_Dominum' post='1406621' date='Oct 21 2007, 04:02 PM']Dude, that's sweeeeet! I wonder if there are any free programs that are comparable to the x-thousand dollar programs? Maybe you could help me make this game? ;) j/k, I know you're super busy, that would be phat though.[/quote]
It's not as easy as it looks, lol. Lots of calculations go into doing even simple things. I've spent whole days designing even simple little chapels on Google Sketch-up (although they always looked pretty sweet). I don't know of any free programs that are similar, although there is one 3-D program that Simcity 4 used which was pretty good, but it's not as user-friendly as autocad.

If a virus hadn't taken my old computer, I'd show you some of the chapels I came up with on it...some of them were pretty sweet. Granted, I'm a fan of Gothic and Baroque and you just can't get that detailed without killing your RAM, but there were some pretty good ones. Domes were always fun to make because I could never find a sphere feature on sketch-up, so I'd have to make a geodesic dome (or something similar) and then soften all the edges, lol.

I couldn't be an architect because my math was great, but I stunk at chemistry (dropped out of it in high school, lol). Most of the really good programs nowadays are integrated, so you have to be decent with design, math, chemistry, engineering, etc., usually specializing in one. At least, that's what I was told.

The world needs more good architects. You remember St. Francis Hall at FUS? The bathroom water drains are level with the rest of the floor because some architect wasn't thinking and thought it would look nicer...so now the janitors have to sweep the water up toward the drains instead of letting the drains just do their jobs.

Anyway, yeah, lol...I'm an architecture nerd. :nerd:

Posted

[quote name='Laudate_Dominum' post='1406615' date='Oct 21 2007, 04:51 PM']Yeah, I've been pondering the kind of restrictions that will have to be in place because in the end the cost is just too high on the kind of realism that I'd like to have and I don't know that its really worth it since it is a game and not a full fledged simulation of reality.[/quote]Simulations always involve cutting corners. The trick is knowing which corners should be cut first. A typical problem here is spending loads of time trying to solve something that has little impact on your app.

[quote name='Laudate_Dominum' post='1406615' date='Oct 21 2007, 04:51 PM']I'm thinking of introducing two modes where one involves a complete view of the planet from a distance and the other is a kind of "orbit mode" where only a portion of the planet is visible but a higher tessellation, higher resolution planet is feasible. It wouldn't have the smooth and seamless experience that would be ideal, but compromises no doubt have to be made.[/quote]That's a great idea to attack this problem. Having a "whole planet" view and a "zoomed in" view for a piece of the planet works well.

[quote name='Laudate_Dominum' post='1406615' date='Oct 21 2007, 04:51 PM']Since I'm basically creating a custom rendering engine from scratch I think it would be a big mistake to avoid HLSL. I've noticed that the more recent DirectX SDK documentation has been extremely HLSL-centric which suggests to me that this is pretty much the way to go.[/quote]I would make the general comment that you should try to avoid coding everything yourself (which is a strong temptation for anyone in 3D graphics) and try to write at higher levels when possible. This will save time, and help keep you focused on the important stuff.

Most rendering engines give you the hooks to write at lower levels when you need to.

As a side note: personally, my biases are toward OpenGL and not DirectX for a few reasons. But, if you're happy with DirectX, I won't comment on that little religious war...

[quote name='Laudate_Dominum' post='1406615' date='Oct 21 2007, 04:51 PM']I know how to write a shader which uses a heightmap texture to pull of the effect but since my original post I've come to question using this technique at all. I'll need to fiddle around and see what works and what I like.[/quote]I think it's a good instinct that you've got to try to push calculations down to the GPU when possible. I'd love to see what kind of stuff you've done. Are you developing in Visual Studio?

[quote name='Laudate_Dominum' post='1406615' date='Oct 21 2007, 04:51 PM']I'm still very stoked that you're into this stuff! What applications do you prefer to work with? I have a bunch of crappy home grown utilities that I use to do things but combined they probably amount to less than 25% of what you could do with 3ds max or maya. :([/quote]Let's see... First, I am not much of a 3D modeler anymore, though I used to do modeling more. The 3D tools I have used are 3D Studio, Creator (aka MultiGen), and a bunch of others that you've probably never heard of. I've programmed in OpenGL, as well as a bunch of higher-level languages, including Performer and OpenSceneGraph. In short, I'm a programmer who uses modeling tools only when I need to.

As far as "crappy home-grown utilities", there's nothing wrong with that! We've all got them! The trick is to always keep your eyes open and make sure you know what else is out there.

Laudate_Dominum
Posted

Since this discussion I have been acquiring real catalogs of data pertaining to stars and other bodies within known space. It has so far been a very demanding process and I've been writing utilities to extract and normalize the slew of data and then import it into my schema. So far I have adequate data on about a quarter of a million stars.

One of the plans I have for this data besides using it for the astrometrics lab is to design an application that will help generate assets for the actual game play levels. Obviously the scale of the game is so vast that it would not be feasible for me to manually create every sector of known space (from the Star Trek perspective) in the alpha and beta quadrants.

The number of sectors that the player will actually be able to visit will be limited since warp travel in ST is itself pretty limited when considering the actual scope of the entire galaxy. I am thinking of using the data I've been collecting to generate skybox/skysphere textures that would apply to large regions of space (at least 20ly3, perhaps 100), and then use the same data to real-time render the stars that fall within an inflated bounding sphere from the center of the sector corresponding to the stars that were excluded when the skybox textures were rendered. This is all just background details btw, I'm not talking about the more particular issues.

The further from sector 001 (Sol system) the game gets the less concerned I am about accuracy. Once the game play passes beyond stardate 46379.1, for example, it is possible to explore the Gamma Quadrant via the Bajoran wormhole. I could care less about accuracy in the Gamma Quadrant since no one would know any different anyway. The Sol System is the opposite in that an astronomy buff in orbit of Earth in my game would be likely to notice big mistakes, omissions or nonsense.

Would you have any advice by chance? Not just rendering stuff but even about astronomical data and all that?

Thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...