Horde3D

Next-Generation Graphics Engine
It is currently 22.12.2024, 06:54

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Horde as a renderer
PostPosted: 24.04.2008, 22:06 
Offline

Joined: 24.04.2008, 21:54
Posts: 4
Hi,

I would like to use Horde as a renderer of static images.
I'm new to 3d and I guess this could be a nice start.

I would need to render the scene using soft shadows and full reflections, using if possible hardware acceleration.
Basically I would like to program a command line application the would work this way:

%> hordeRenderer scene_file output_image

My question is, is there a format understood by Horde that can describe an entire scene? once i've got my scene ready, how can I render it on an image file using Horde?
I would prefer not to have any windows open on the screen.


Thanks
Dan


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 01:34 
Offline

Joined: 26.03.2008, 02:58
Posts: 160
Hi,

I would like to mention that Horde is a real-time renderer. You will get better results (image quality) if you used a ray-trace renderer like http://en.wikipedia.org/wiki/YafRay this type of renderer produces much better quality images, specially in terms of reflections and shadows, there are many high quality algorithms that are not real time friendly.

There are many open source and commercial ray-trace renderers.


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 01:42 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
Eeeeeehhhhhhhh...

one by one:

Quote:
I would like to use Horde as a renderer of static images.

That's doable. You could use more complicated shaders and pipelines.

Quote:
I would need to render the scene using soft shadows and full reflections, using if possible hardware acceleration.

You'd have to write shaders for soft shadows, you'd have to write shaders and C code for reflections. Of course it'd use hardware acceleration.

Commandline, no brainer.

Quote:
My question is, is there a format understood by Horde that can describe an entire scene?

Yeap, the scene.xml.

Quote:
once i've got my scene ready, how can I render it on an image file using Horde?

Render it to a buffer, grab the buffer, write to file.

Quote:
I would prefer not to have any windows open on the screen.

Eeeehhh...not even for a preview? Sure you can do this, just never swap the buffers.

Quote:
I'm new to 3d and I guess this could be a nice start.

Horde isn't an offline renderer, so you can't expect to get super high-quality results without putting in a lot of work into pixel shaders and pipelines. You'll have to do your own global illumination, ambient occlusion, your own everything, in shaders and pipes.

But you can do it. I don't think it'd be a good project for someone starting in 3d though, but that's for you to decide.

EDIT: I just dug up GPU Gems 2 article "Implementing the Mental Images Phenomena Renderer on the GPU" they mention specifically that shader compilation of many heavy duty shaders can be of such significant overhead that software rendering is ideal, but that if shaders are already compiled, and textures fit in memory, it's fast as ... fast.


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 07:44 
Offline

Joined: 24.04.2008, 21:54
Posts: 4
Thanks Acid.

My project started when I noticed that there were no fast open source and command line renderers around. I've tried blender, from command line, but it takes ages (~10 sec) to render even the simplest scene.
Well this is true to the best of my knowledge :) Do you guys know a renderer like I described?

Dan


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 07:57 
Offline

Joined: 26.03.2008, 02:58
Posts: 160
I really do not get what you want to do :?:

If you want to render an image using horde3D, use the editor to setup the scene and then do a simple print screen.


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 09:47 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
DDd wrote:
I really do not get what you want to do :?:


Pretty much hits it on the head, the more info you can give us about what it is you're doing the better we can help point you in the right direction.


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 10:02 
Offline

Joined: 24.04.2008, 21:54
Posts: 4
ok :) i'll explain myself better. Modern graphic cards provide full hardware support for a vast variety of effects, for example the latest real time face rendering from Nvidia is just amazing.
I would like to implement a generic renderer that uses hardware acceleration to render the scene. No raytracing of course.
I would like to start small, maybe just implementing some effects like soft shadows, anti-aliasing and simple reflections.

And well, i've looked around and it doesn't seem that something like that (a fast, open source renderer) exists.
Do you know some other projects that are doing the same thing?
Most open source renderers i've found are specialized on ray tracing.


I hope my point is more clear now :P
thx


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 10:17 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
Wonderful.

mrstrano wrote:
I would like to implement a generic renderer that uses hardware acceleration to render the scene. No raytracing of course. I would like to start small, maybe just implementing some effects like soft shadows, anti-aliasing and simple reflections.


That's completely do-able. Pretty much just look at everything in my previous post. I wouldn't worry about your requirement of being commandline and without a window until you get far enough along, as the constraint could slow you down quite a bit. You won't have the same rules or constraints to follow that we in real-time-world have so it may be difficult to get help on some things here and there.

There is nVidia's Gelato, but it isn't open source IIRC.


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 10:23 
Offline

Joined: 24.04.2008, 21:54
Posts: 4
I've also found this list of open source renderers, googling

http://www.mega-tex.nl/links/rendersoftwarelinks.php

but most of them use ray tracing.

Well to begin with, I would like to strip down from HordeSceneEditor the part that loads a scene and simply output the result on a window (no GUI). Any idea about that?

thx


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde as a renderer
PostPosted: 25.04.2008, 10:35 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
I would suggest to start parsing the scn file created by the editor and load the .scene.xml file referenced in it like it is done e.g. in the knight sample. Stipping down the loading from the editor is much more complicated.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group