[Radiance-general] illuminate a 3ds with radiance
Giulio Antonutto
Giulio.Antonutto at arup.com
Wed Mar 2 14:22:56 CET 2005
Despina,
You can convert almost any 3ds model directly into radiance:
3ds2mgf name.3ds
mgf2rad name.mgf > name.rad
now simply try:
objview name.rad
the rvu window should open showing the model illuminated by 3 light sources,
it's a quick and good check to start with.
Of everything is ok, you can now create in a separate file the sky,
When you have done you combine the two with:
oconv sky.rad name.rad > name.oct
and preview them with
rvu name.oct
now you just need to set up the view,
type v in the rvu window, select point and viewing direction...
good luck!
giulio
PS
this is quick but do not incorporates uv coordinates, only colours are
translated.
If you have textures and uv you may need to use obj2mesh
Once converted the model the syntax is:
void mesh example
7 modelname.mesh -rx 90 -t 10 10 10
0
0
Where:
7 is the number of inputs on the same line,
-rx 90 rotates the model by 90 degrees on the y axys
-t 10 10 10 translate the model from 0 0 0 to the point 10 10 10
When creating the mesh use:
obj2mesh -a materialfile objfile > meshfile
About that there is a quick tutorial I wrote at:
http://www.bozzograo.net/radiance/modules.php?op=modload
<http://www.bozzograo.net/radiance/modules.php?op=modload&name=Downloads&fil
e=index&req=viewdownload&cid=5>
&name=Downloads&file=index&req=viewdownload&cid=5
_____
From: radiance-general-bounces at radiance-online.org
[mailto:radiance-general-bounces at radiance-online.org] On Behalf Of Despina
Michael
Sent: 02 March 2005 12:33
To: Radiance general discussion
Subject: [Radiance-general] illuminate a 3ds with radiance
Hello!
I need to illuminate a scene with radiance which does not only contain
primitives (e.g. sphere) but some more complex models such a 3ds model.
That is, I need to do what is described in Debevec's IBL tutorial but
instead to have spheres in the scene, i wolud like to have a 3ds model
As I understood so far from what I have read from web, is that I need to
convert .3ds to .obj and then use obj2mesh radiance programm
Then I should use that mesh (lets sat output.rtm) in the scene (file:
scene.rad) with this:
mod mesh id
1+ output.rtm [xform args]
0
0
I would like to know if this is the correct process or there is another way
to illuminate a 3ds with radiance?
What about [xform args]. What I should write over there? Is anywhere that I
can find a simple and complete example for illuminating scenes constist from
more complex models?
Should I let 1+ and two zeros just as there are?
...Beside the help I need for the above, I would like to read "Real Pixels"
Graphics Gem II. I' ve ty to find it in the web but waht I found are only
many references about this paper. Can I found it anywhere online?
Thank you a lot,
Regards,
Despina
___________________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20050302/57471f67/attachment.html
More information about the Radiance-general
mailing list