A word about my 2.5d trees...

Share your materials, models, and resources for Twilight
Locked
tomsdesk
Posts: 196
Joined: Thu Aug 27, 2009 1:15 pm
Contact:

A word about my 2.5d trees...

Post by tomsdesk » Fri Oct 16, 2009 2:24 pm

...explode!

Playing with Twilight I've noticed several of my previous trees were doing strange things, but in full model context the scope wasn't obvious. (Others I believe have had the same problem in other render apps...?) So doing the first render of the first tree of the new set of PR image trees hit me pretty hard:
tn_!oak-image.jpg
tn_!oak-image.jpg (106.32 KiB) Viewed 11387 times
But exploding the image (only the image inside the leaf-bunch component...which are grouped together inside the whole tree component), then hidding the four edges of course, solves the problem:
!oak-explode.jpg
!oak-explode.jpg (115.26 KiB) Viewed 11388 times
For some reason, doing this will also speed up the AA phase of rendering (4 times faster on this little image)...but it does add 30+ faces and 120+ edges per tree to your model, so only you know when it is time to explode the leaf-bunch image.

I've also noticed, but haven't yet proven with certainty, that creating the original tree in SU7 alleviates the problem without exploding the image...? Anyway, I will create future tree sets in SU7 (saved back to SU6 I suppose) and with Twilight am now able to verify the rendering results of my product, thank you very much.

Gaieus
Posts: 426
Joined: Thu Aug 27, 2009 9:08 am
OS: Win XP + SP3
SketchUp: 6 7 8
Location: Pécs, Hungary
Contact:

Re: A word about my 2.5d trees...

Post by Gaieus » Fri Oct 16, 2009 2:54 pm

This is interesting Tom, as yesterday I was playing about with lighting with fire and I had a flame image (got it and the whole idea here, on the TL Forums and still owe a big thank you) so I had the flame image and duplicated it by moving a copy behind it > scaled by -1 (i.e. mirrored) horizontally and scaled up a bit (I can't attach the skp file as it exceeds the file size limit but can post to anyone interested).

Now while this image entity was correctly in place in SU (see SU export), it somehow rendered somewhere way below the "fireplace" (actually a tripod). Somehow as if it were mirrored vertically, too, but not about its center (as I did above) but about its opposite (lower) point (see attached render - material is Solo's dirty metal - thanks - and as it has linked bump and specular map, it may not render exactly the same way as in the picture is someone downloads it).

Then I exploded the image entity, hid the four edges (although you don't need to do this for rendering) and everything was just fine.
Attachments
flame_TL.jpg
flame_TL.jpg (121.91 KiB) Viewed 11381 times
flame_SU.jpg
flame_SU.jpg (112.05 KiB) Viewed 11376 times
Gai...

Ecuadorian
Posts: 1779
Joined: Fri Mar 20, 2009 3:43 pm
OS: Windows 7 Pro 64-bit
SketchUp: 7.1
Location: Guayaquil, Ecuador
Contact:

Re: A word about my 2.5d trees...

Post by Ecuadorian » Fri Oct 16, 2009 3:46 pm

In Twilight, unexploded images render with full 0-255 alpha transparency, and thus are a lot slower to render. Textures and exploded images render with "clipmapping", meaning there are parts 100% visible and parts 0% visible, and no intermediate points. These render very fast.

Gaieus
Posts: 426
Joined: Thu Aug 27, 2009 9:08 am
OS: Win XP + SP3
SketchUp: 6 7 8
Location: Pécs, Hungary
Contact:

Re: A word about my 2.5d trees...

Post by Gaieus » Fri Oct 16, 2009 4:00 pm

That's good to know for further work, Miguel, thanks!
Gai...

Chris
Posts: 5346
Joined: Sun Mar 08, 2009 3:00 am
OS: Win10
SketchUp: 2016

Re: A word about my 2.5d trees...

Post by Chris » Fri Oct 16, 2009 4:25 pm

Thanks Tom!! I appreciate the update. :D

SketchUp treats images differently from normal geometry. Why, I don't know, because it's completely unnecessary. Exploded images are just a single rectangle with a texture applied, so why the complexity built on top... who knows. What I do know is that it makes dealing with images complicated and leaves them prone to a lot of positioning problems. So exploding images is always a good suggestion if you are seeing position problems.

In the meantime, we are always working to solve the little mysteries, so hopefully we'll get this one figured out too!

Fletch
Posts: 12906
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: A word about my 2.5d trees...

Post by Fletch » Fri Oct 16, 2009 6:32 pm

Hi Gai,

We know there's an issue, but it's not been 'nailed' yet because it's a completely unreliable 'bug' - meaning it doesn't happen all the time... please try sending this particular problem child to support at twilightrender dot com and we will see if perhaps it will be the 'key' to nailing the 'bug'.

Gaieus
Posts: 426
Joined: Thu Aug 27, 2009 9:08 am
OS: Win XP + SP3
SketchUp: 6 7 8
Location: Pécs, Hungary
Contact:

Re: A word about my 2.5d trees...

Post by Gaieus » Fri Oct 16, 2009 7:47 pm

OK, I will. I will also write down in details what step I did.
Gai...

Locked

Who is online

Users browsing this forum: No registered users and 20 guests