Decal Script Object

10 votes
Version: 
00.4beta
Date Updated: 
12/06/2009
Author Name: 
Nolan Cunningham
Additional Info: 

this script hasn't been tested to thoroughly so post any issues you might have.

tool should end up in helper objects under GameDevTools after being executed

fixed an issue resulting in bad UVs when target object had transforms on it.

Version Requirement: 
tested in 3Ds Max 2009
Video URL: 
AttachmentSize
Decal_object.ms12.62 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Westmark's picture

UV Bug

Found the bug in the uv generation

Sone values wasn't set correctly

On line 292:
--UVMod.length = -1
--UVMod.Height=1

Change to:
UVMod.length = -1
UVMod.width = 1
UVMod.height = 1

Unsure if the capital "H" was an issue, but just to be safe ;)

Myth65's picture

Hope someone can help

Hi,

The preview for the decal is perfect but the UVs for the plane that it creates is messed up. Ideally I would like the UVs to automatically cover the entire 0-1 UV space. See attached images.

I was hoping if anyone can take a look at this script and give me some insight on how it may be adjusted to achieve the correct result. The script is over 10 years at this point but I think can be extremely handy if the UV's were correct.

AttachmentSize
preview.jpg 102.61 KB
incorrectuvs.jpg 217.41 KB
Apple_Hardcore's picture

Ok I think I got it.

Ok I think I got it. although I;m not sure. I got the same results when I tried one of the functions on a preexisting object because the UV modifier wasn't set to 1x1. when I apply my UV in the script it automatically goes to 1x1. I'm not sure if it's different for you but it might fix it.

ShiroEd's picture

Im having the same problem.

Im having the same problem. UVs are not correct to display the texture. We need the 'created' mesh's UV's to be scaled to fit into normal UV 0,1 space if you know what I mean?

Currently the UVs are coming out really small for me within UV space 0,1.

Max 2010 x64

Apple_Hardcore's picture

ok re-uploaded... thanks for

ok re-uploaded...
thanks for testing the script BTW hope I can get it to work for you.

Apple_Hardcore's picture

I'm using max 32 but I can't

I'm using max 32 but I can't imagine that would make a difference, I haven't had any experience with the different skews though. I'm having a hard time figuring out what could cause such totaly different out comes.

I'm curious if anyone else is having any problems..

I'll re-upload the latest script to make sure I haven't botched up on that end.

Ankebut's picture

yes I am using max 2009

yes I am using max 2009 x64...but with 3ds clean mod...maybe ill try it without...

Apple_Hardcore's picture

we might just end up needing

we might just end up needing some more people to test this script to find out where the issue is.

Apple_Hardcore's picture

are you using max 2009? also

are you using max 2009?

also couldn't reproduce the error with it not working in the startup scripts directory..it works for me. not sure how to proceed with that.

just tested out your scene as well... and it worked for me... must be your version of max or perhaps it's mine. but I'm not having any issues. also try to redownload the script to make sure you have the latest one.

Ankebut's picture

here you have the max

here you have the max scene...tried it again with real world scaling etc...same error...cut off meshes + weird uv

look file attached

AttachmentSize
decalmax.max 408 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.