Radiance developer beginner

Howdy :slight_smile:

I'm having a go at creating a texture baking program and need to get to the
details of the polygons being baked. I'm planning to take <rendering

, <octree>, & <a list of polygon_ids to bake> as params to my

program, but I'm not sure that the octree stores the info I need. (Each
specified polygon needs to have its own viewpoint to create a rendered
image.)

In short, could someone tell me how if it is possible (& how) to retrieve a
face by polygon_id from <CUBE thescene>, or whichever structure I need to
look in?

Many thanks,
mike

I would suggest you to use .rad files instead octree, I have a feeling that
it's simpler.
You can write a program (or just a unix script) to read radiance scenes, use
the polygon id and vertex position to create a view direction and finally an
image.

The structure of a polygon based radiance file is not far from this:
(assuming no other entities are present but polygons and material are
defined in another file)

material polygon polygon_id
0
0
number of vertex (n)
x1 y1 z1
x2 y2 z2
........
xn yn zn

you could also instruct the program to create images with different
resolution, dependong on the area of the polygon....
looking forward to ear news about!

giulio

路路路

----------
From: [email protected] on behalf of
Michael Kruger
Reply To: code development
Sent: Thursday, December 9, 2004 4:11 PM
To: [email protected]
Subject: [Radiance-dev] Radiance developer beginner

Howdy :slight_smile:

I'm having a go at creating a texture baking program and need to get to
the
details of the polygons being baked. I'm planning to take <rendering
>, <octree>, & <a list of polygon_ids to bake> as params to my
program, but I'm not sure that the octree stores the info I need. (Each
specified polygon needs to have its own viewpoint to create a rendered
image.)

In short, could someone tell me how if it is possible (& how) to retrieve
a
face by polygon_id from <CUBE thescene>, or whichever structure I need to
look in?

Many thanks,
mike

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

___________________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses.

Start by looking in src/common/readoct.c -- but only if you're determined!

-Greg

路路路

From: "Michael Kruger" <[email protected]>
Date: December 9, 2004 8:11:20 AM PST

Howdy :slight_smile:

I'm having a go at creating a texture baking program and need to get to the
details of the polygons being baked. I'm planning to take <rendering
>, <octree>, & <a list of polygon_ids to bake> as params to my
program, but I'm not sure that the octree stores the info I need. (Each
specified polygon needs to have its own viewpoint to create a rendered
image.)

In short, could someone tell me how if it is possible (& how) to retrieve a
face by polygon_id from <CUBE thescene>, or whichever structure I need to
look in?

Many thanks,
mike

Thanks for the advice. :slight_smile: I think I'll go with Greg's suggestion for now -
reading the data from the octree would be preferable to parsing it from the
rad file.

I like the idea of having variable texture sizes for the polygons, but then
packing the texture set becomes a little bit tricky. :slight_smile:

Anyone with experience packing atlas maps who wants to lend me some advice
would be appreciated!

mike

路路路

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Giulio
Antonutto
Sent: Thursday, December 09, 2004 4:28 PM
To: 'code development'
Subject: RE: [Radiance-dev] Radiance developer beginner

I would suggest you to use .rad files instead octree, I have a feeling that
it's simpler.
You can write a program (or just a unix script) to read radiance scenes, use
the polygon id and vertex position to create a view direction and finally an
image.

The structure of a polygon based radiance file is not far from this:
(assuming no other entities are present but polygons and material are
defined in another file)

material polygon polygon_id
0
0
number of vertex (n)
x1 y1 z1
x2 y2 z2
........
xn yn zn

you could also instruct the program to create images with different
resolution, dependong on the area of the polygon....
looking forward to ear news about!

giulio

----------
From: [email protected] on behalf of
Michael Kruger
Reply To: code development
Sent: Thursday, December 9, 2004 4:11 PM
To: [email protected]
Subject: [Radiance-dev] Radiance developer beginner

Howdy :slight_smile:

I'm having a go at creating a texture baking program and need to get
to the details of the polygons being baked. I'm planning to take
<rendering
>, <octree>, & <a list of polygon_ids to bake> as params to my
program, but I'm not sure that the octree stores the info I need.
(Each specified polygon needs to have its own viewpoint to create a
rendered
image.)

In short, could someone tell me how if it is possible (& how) to
retrieve a face by polygon_id from <CUBE thescene>, or whichever
structure I need to look in?

Many thanks,
mike

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

___________________________________________________________________
Electronic mail messages entering and leaving Arup business systems are
scanned for acceptability of content and viruses.

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev