Z-shading in edit mode

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

coelurus
Posts: 0
Joined: Sat Jun 18, 2005 9:21 pm

Post by coelurus » Thu Aug 04, 2005 5:56 pm

I can't see how having bright colors for selected vertices should be an improvement, since imo the problem with vertex-shading in the first place is to find non-selected vertices :) All vertices should be bright so that they are all easy to spot and the wireframe gives away their relations in space very well anyway.

To solve rapid viewpoint manipulation for "lazy z-dist info" (using info from the last frame), the mapped-edges function could compare the matrices of the last and current frames to see how much the camera orientation differs. If the matrices differ significantly, an extra traversal to compute z-dist info can be issued before rendering. This means doubling the processing, but since the view was changed rapidly, the user won't notice in any case. Smooth rotation of the scene using the mouse will still use a one-time traversal and be nicer on the CPU :)

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Mon Aug 08, 2005 4:41 pm

A new patch is ready with the following changes...

1. -efbie- suggestion about only shading selected vertices
2. shading now works in edge/face selection mode
3. shading now works with the other mesh drawing options
4. user preferences added to set the minimum amout of shading

After much experimentation this weekend, I think that shading the vertices is a good idea. If you have a cluster of vertices it can be difficult to figure out which one(s) you need to select. Shading the edges doesn't really help in this area. I gave user the ability to 'turn off' vertex shading by setting the Vertex Shade Min = 255 in the User Preferences.

The updated info is at the usual link. I had some problems uploading the page and I think some of the pics are screwed up. The patch should be be okay. Let me know if you have any problems with it.

http://www.ericmforsythe.com/Blender/De ... bject.html

-efbie-
Posts: 0
Joined: Wed Oct 27, 2004 9:47 pm

Post by -efbie- » Wed Aug 10, 2005 2:52 pm

I couldn't apply the patch to drawobject.c on today's cvs tree :S am i doing something wrong ?

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Wed Aug 10, 2005 6:26 pm

Maybe the patch is screwed up. I'll check it out tonight... :?

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Thu Aug 11, 2005 4:21 pm

I checked out the lastest code this morning and built a new patch against it. There were some merge conflicts in drawobejct.c that I had to resolve. Hopefully everything is okay now...

http://www.ericmforsythe.com/Blender/De ... bject.html

-efbie-
Posts: 0
Joined: Wed Oct 27, 2004 9:47 pm

Post by -efbie- » Wed Aug 17, 2005 11:31 pm

Sorry for the lack of feedback, but my computer is broken atm so i will not be able to test it for the next weeks, you should post about this patch on the dev-mailing list or put it in the patch tracker, or ask to integrate it in tuhopuu, because i think your feature is really worth to be included in bf-blender.

You might want to check what the dev think of your patch, i'm just an user ;)

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Sun Aug 21, 2005 8:52 pm

Sorry for the lack of feedback, but my computer is broken atm so i will not be able to test it for the next weeks
No problem. Currently, I am cleaning the code up and working on adding coelurus original shading algorithm. Hopefully, I will be done by the time you are ready to test again and you will have a polished patch. Thanks for the help! :)

I am also having problems because some of the code that I am changing appears to be under moderate construction in CVS. So, I appologize if the patches don't work 100% with the latest version of Blender in CVS.

As far as getting the developers involved.... I would like to get the wrinkles out first. I am not entirely happy with the current patch.

Bellorum
Posts: 0
Joined: Wed Jan 21, 2004 3:27 pm

Post by Bellorum » Sun Aug 21, 2005 10:26 pm

Hey! This looks really useful :)
There's no such thing as democracy. There's only the tyranny of one, and the tyranny of many.

ZanQdo
Posts: 0
Joined: Sun Apr 11, 2004 4:57 am

Post by ZanQdo » Mon Aug 22, 2005 4:23 pm

Exellent! I allways do a "mist" trick to my wire renders so they look more "3d", why not having these in the 3d viewport!? :D

ideasman
Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Post by ideasman » Thu Aug 25, 2005 5:53 pm

Why not commit to tuhopuu? I realy like your work.

At first I couldent see the point, but your more recent examples better show how it could be used.

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Thu Aug 25, 2005 9:28 pm

Why not commit to tuhopuu?
Can anyone commit changes to tuhopuu? My understanding is that I can't. How do I go about doing this?

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Mon Sep 05, 2005 5:07 pm

I updated the patch and the webpage. The biggest improvement to the new patch is the shading of colors. I also fixed some minor drawing problems and cleaned up the code. The only issue that I still need to address is to find a better way to handle the Z-fighting problems.

Let me know if you find any bugs or have any ideas for improvement. Thanks!

http://www.ericmforsythe.com/Blender/De ... bject.html

myfish
Posts: 0
Joined: Fri Sep 26, 2003 9:01 pm

Post by myfish » Mon Sep 05, 2005 10:15 pm

the images on the webpage look very good.
I would use the feature if it produced what you have there.
large meshes can sometimes get confused in 3D space.

eric.m.forsythe
Posts: 0
Joined: Thu Jun 23, 2005 3:26 pm

Post by eric.m.forsythe » Tue Sep 27, 2005 4:03 pm

Okay, I finally got around to finishing this patch. :D There was a couple of drawing problems with the last patch that have been fixed. I am not aware of any bugs in the current patch.

As usual, the latest info and patch can be found here...

http://www.ericmforsythe.com/Blender/De ... Shade.html

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip » Tue Sep 27, 2005 6:49 pm

eric,

if you want this in Blender for the next release, you need to submit it in the next day or so (if it isn't already too late),

we are doing a release in less than 3 weeks!

LetterRip

Post Reply