You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

1

Friday, May 22nd 2009, 7:08pm

tessmode ?

Hi,

I'm trying to understand what "display.tessmode" is doing, and actually, I don't.

Can someone explain me what it's supposed to do ? For 1 ? For 5 ?

Thanks ! :-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

2

Friday, May 22nd 2009, 10:11pm

I you turn on show polygons (or was it triangles) You'll see the difference, It subdivides the polygons in a certain way. How this exactly effects your panorama, beats me :(
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

3

Saturday, May 23rd 2009, 6:51am

Well, it's way toooo complicated to explain in this little text area... but all you need to know is that it adjusts the spelunker valves and triple over head carbertrators and makes things look really nice... unless you get it wrong *g*

OK - sorry... I don't have a clue about it... or no more than Zephyr does *tongue*

Best to look at the examples page...
here: http://www.krpano.com/examples/

... and click on the variety of samples... and use the options plugin (look for the little down arrow in the top right of the pano) to do the following:
- click on "showpolys" to see how krpano / flash break up the images to be drawn on the screen
- click on "tessmode" to cycle through the numbers

If you want, you can add the options plugin to your own pano by following the instructions here: http://www.krpano.com/plugins/options/

... and then seeing how it affects your pano in particular.

edit: OK, I was curious and did some googling... tessmode... tessellation... and my rough interpretation is "how a bunch of flat pieces are put together to create a larger piece". Which I'll go ahead and go way beyond my actual knowledge and say this...

... You've got this great big flat image that needs to be displayed upon a "curved" surface... and since it's pretty difficult to actually project that entire image on a curved surface and turn it round and round... it has to be broken into smaller flat pieces... in this case triangles. Then each triangle can be placed and manipulated as needed to show the whole.

The different tessmodes just represent different ways of splitting the image into smaller pieces.

OK - now time to wait for Klaus to correct me. *smile*

This post has been edited 1 times, last edit by "Graydon" (May 23rd 2009, 7:10am)


Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

4

Sunday, May 24th 2009, 6:11pm

In 3d software. Tessellation breaks up a surface to create more polygons, the result is a much more detailed and smooth result. For example a Sphere with extremely low tessellation would look like a cube, and the more tessellation is added, the rounder and smoother it looks. almost exactly how the details variable works.

Details is the amount of segments the sphere has where the panorama is on projected. A sphere with 32 segments is almost similar as a sphere with 16 segments and 1 amount of tessalation. I don't know how klaus does this, either a basic sphere, and the details adjust the amount of tessellation, or the amount of segments.

tessmode is the way how the polygons get subdivided, you can either subdivide the polygons (32 segments = 512 polygons) or the faces (each polygon has 2 faces in this example, so 1024). Then you have either Edge center based or Face Centered. So thats 2x2 possibilities, Last tessmode, would probably be no tessellation.

Because the panorama gets projected on the 3d sphere, I think tessmode adjusts how the panorama gets "relaxed" over the sphere. In other words, the way how the panorama gets distorted. In 3d it wouldn't matter because we have UVW Mapping that translate texturecoordinates with 3d model coordinates.
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

5

Monday, May 25th 2009, 4:31pm

Hi,

thanks Zephyr, a good explanation!

the "details" parameter controls only the number of segments and
the the "tessmode" the way how the single triangles are ordered,

this was more important for Flash9 and how to get the best results on
low details settings, especially on cubical panos, for Flash 10 or higher
details setting it is not that important,

best regards,
Klaus

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

6

Thursday, May 28th 2009, 10:00am

Thanks for your explanation ! ;-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).