mastodon.me.uk is one of the many independent Mastodon servers you can use to participate in the fediverse.
Open, user-supported, corporation-free social media for the UK.

Administered by:

Server stats:

535
active users

#godot

49 posts37 participants6 posts today
Continued thread

#GameDev #Godot #Subdividsion #CatmullClark #DebugDrawModeTotheRescue

Aaaaand, fixed! That wasn't really six hours solid debugging, or even an hour of drinking coffee and 4 hours debugging, there was cooking an eating a meal, watching the end of a Scandi Noire murder series... so maybe three hours solid debugging...

As ever, it's not assumptions you make that bite you the worst.

It's the assumptions you didn't even know were there. In this case the assumption that the edges are always added in to a vertex *clockwise*...

So, three hours debugging and one quick method VertUtil.ToVertWithSortedEdgesAndPolys(...) later and it finally looks like I'm really doing what I thought I was doing three days ago.

Continued thread

#GameDev #Godot #Subdividsion #CatmullClark #DebugDrawModeTotheRescue

They do work, though! I wasn't able to work out why I had this weird dark wedge on the flat surface at the edge furthest from the light, but drawing the normals shows that vert's normal (for this surface, we have to split the vert/normal for a sharp edge) is pointing off at an angle instead of perpendicular to the surface...

Time to put my debugging hat on...

But first, a cup of coffee!