Current User: Guest
Please consider registering


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Diffrent aspect ratio sculptie meshes

No Tags
Post
Guest

Photon Pink

7:06 am Aug 15, 2008

1

Just added to the SL beta grid viewer is the abilty to make sculpties with diffrent aspect ratio meshes such as 32x128 map makes a 16 x 64 mesh. Do you think you can add support for this?

They also added checkboxes to reflect sculpties on their X axis and a checkbox to turn them inside out.

Admin

Shack Dougall

10:47 am Aug 15, 2008

posts 1155

2

Thanks for the head-up!  It's good to know that LL is improving sculpts.

I have a couple of other things planned first, but I'll be looking at sculpties again in about a month.  I'm sure that I can support this.

Admin

Shack Dougall

11:56 am Sep 24, 2008

posts 1155

3

I'm actively studying this now.

The best reference appears to be this thread in the SL forums.

Guest

Photon Pink

10:23 pm Sep 26, 2008

4

Yes. It looks like that SL forum thread was spawned by someone who saw my comment here. There is a list of all the posible ratios on there, you probably saw it. I also have a cilpping of the code the determins how many verts a map gets in X and Y depending on its resolution. I will paste it below. I got it from Qarl Linden at his weekly office hours that are every firday at 11:00 SL time, if you would like to attend. The Max user community is not well represented there. Or you can always get info through me, im there most weeks. Feel free to contact me in world and ill help any way i can. Im an experienced programer but Maxscript is a new language to me so it would take me a while to get up to speed on the functions and syntax. Ive looked at the SculptGenMax code and cant quite understand how all of it works.

BTW, thanks for all your work on SculptGenMax! =)

void sculpt_calc_mesh_resolution(U16 width, U16 height, U8 type, F32 detail, S32& s, S32& t)
{
 S32 vertices = sculpt_sides(detail);

 F32 ratio;
 if ((width == 0) || (height == 0))
 ratio = 1.f;
 else
 ratio = (F32) width / (F32) height;

 s = (S32)(vertices / fsqrtf(ratio));

 s = llmax(s, 3); // no degenerate sizes, please
 t = vertices * vertices / s;

 t = llmax(t, 3); // no degenerate sizes, please
 s = vertices * vertices / t;
}

Admin

Shack Dougall

10:48 pm Oct 1, 2008

posts 1155

5

Prim Composer 1.02 will have basic support for different aspect ratios.

2x512, 4x265, 8x128, 16x64, 32x32, 64x16, 128x8, 256x4, 512x2

I'll be releasing 1.02 Friday night.

Also, there is a new JIRA issue (VWR-9384) based on these discussions and announced here.

Please vote for it!

No Tags


Reply to Topic:
Diffrent aspect ratio sculptie meshes

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 5