Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Shade vertex Plugin

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins
View previous topic :: View next topic  
Author Message
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Thu Sep 04, 2008 3:22 pm    Post subject: Shade vertex Plugin Reply with quote

Hi here is a plugin I have made from a request by Daaark.
What it does is assign vertex colours between two selectable colours by relative height(Axis selectable).
Here is link
http://www.mediafire.com/download.php?elgkmf0wqey

Hope you enjoy. Thanks for the idea Daark.
Back to top
View user's profile Send private message
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Thu Sep 04, 2008 8:28 pm    Post subject: Reply with quote

This is how it works, incase you missed it in my thread:



That's an extreme, obvious example, but it works great for shading terrain and other objects.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Thu Sep 04, 2008 8:34 pm    Post subject: Reply with quote

Thanks alot fik!
_________________
Chickens RULE | www.elementrix.nl
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Fri Sep 05, 2008 7:02 am    Post subject: Reply with quote

Excellent work! You're on a roll, Fik! Very Happy
_________________
Check out Figuro, our online 3D app! More powerful 3D tools for free.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Fri Sep 05, 2008 11:22 am    Post subject: Reply with quote

Thanks all. Yes on bit of a roll, just haven't been inclinded to model lately.
Even with the great compo going on Shocked Keep trying but get nowhere. Plugin writing has caught my attention for moment.
Back to top
View user's profile Send private message
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Thu Sep 11, 2008 9:00 pm    Post subject: Reply with quote

Not sure if this is a DeleD bug, or one with the plugin, but sometimes an object will revert to the system texture while being shaded. Mad
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Fri Sep 12, 2008 6:49 am    Post subject: Reply with quote

and sometimes it destroys my geometry, but that might be because it's a bit complicated? (some of the house's and the main island in my compo entry get screwed up if I do this plugin on it.)
_________________
Chickens RULE | www.elementrix.nl
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Fri Sep 12, 2008 6:54 am    Post subject: Reply with quote

It shouldn't make a difference. There is no such thing as a 'complicated model', it's just a list of vertices and faces, and they only need to be looped through twice, to get the position ranges, and then to color them.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Fri Sep 12, 2008 8:40 am    Post subject: Reply with quote

@Daaark
Jan-Paul said similar about UvMapping plugin if File not saved once before use. I can not get this to happen repeatably. Actually I have only got this to happen a couple of times. Still trying to find out why. I suggest saving file when first opened or when material editor used this seems to stop happening.
@Elementrix That is very strange as this plugin should not touch geometry at all only tests vertex positions and changes vertex colours. could you send me one of the meshes that gets destroyed I dont want this to happen!!
Back to top
View user's profile Send private message
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Mon Sep 15, 2008 10:19 am    Post subject: Reply with quote

Done some more testing and sometimes Deled sends a material Id of -1 for polys this is cause of problem. Seems to be mainly when use material editor so will report this as a bug.
Still can't make it destroy geometry though.
Back to top
View user's profile Send private message
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Mon Sep 15, 2008 10:23 am    Post subject: Reply with quote

What it does is: I select an object, I do this plugin on it and it moves some vertices incredibly far to the left and the right.

I'm now at school but I will send you an object on which this occurs when I get home.
_________________
Chickens RULE | www.elementrix.nl
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Mon Sep 15, 2008 10:30 am    Post subject: Reply with quote

@Elementrix
Thanks that will be great. Very Happy
This is a strange fault as I don't change values intentionaly, must be something in the conversion to my format and back again.
Back to top
View user's profile Send private message
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Mon Sep 15, 2008 4:05 pm    Post subject: Reply with quote

It wouldn't work on my palm trees last night. Shocked
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Tue Sep 16, 2008 10:29 am    Post subject: Reply with quote

Hi I have found that texture changing fault, is from using material editor. When you have used and just ask for selected objects the changed texture is not sent correctly. Saving file does fix this. But I have also found that if I request textures this forces Deled to update internally. Then sends correct when ask for selected objects.
I have made this plugin now using this workround and cannot get to go wrong.
I have also found that plugin also destroys vertex alpha's if set this fixed to. Just waiting for Elementrix to post file that explodes Geomertry so I can see and fix this problem as I cannot replicate.
Also will Update and post other plugins that just ask for selected objects to stop this on them to.
If anyone found textures go wrong when haven't used material editor give me a shout and please try to say what you did and when it went wrong.
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Thu Sep 18, 2008 7:52 am    Post subject: Reply with quote

Quote:
When you have used and just ask for selected objects the changed texture is not sent correctly


That would be too weird, as you just get the objects you see in the editor, serialized to XML. So if you see things correctly on your screen, you should really get the correct data. I'll put this on our list of things to check. If it's true, congrats on spotting the Meanest Bug of the Month (TM). If not, kudos for the workaround anyway! Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum