It is currently Wed Dec 11, 2019 3:39 am


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: PagedVolume Geometry Issue
PostPosted: Sat Aug 22, 2015 6:20 pm 

Joined: Mon Dec 30, 2013 7:52 am
Posts: 3
I am running the code for PagingExample.
I am using the latest develop commit.

The example creates this
Image

But when I use it there are missing faces. Like the blue layer is only one-sided.
Image


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Mon Aug 24, 2015 8:42 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
There are actually two issues I would like to address here. Firstly, the PolyVox example is already rather strange and I'm not sure if it is supposed to look like that. I didn't write that code, but a quick skim indicates it's supposed to be a Perlin noise volume. I don't know where the sine wave effect is coming from, perhaps it is hidden in the code somewhere or maybe it is a bug. Possibly a clamping/wrapping error at the volume bounds? I'll need to poke the code to see.

The second question is why your version looks different. However, it's only the sine wave which looks wrong, so if that's a bug anyway then we shouldn't worry about it yet. For example, the buggy geometry could simply have wrong winding or normals.

I'll try to look at the PolyVox example after LudumDare.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Mon Aug 24, 2015 9:00 pm 

Joined: Mon Dec 30, 2013 7:52 am
Posts: 3
It seems that the PolyVox example has double sided rendering, so the issue is the same.
The only thing that is different is that I set a random color to the voxels.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Wed Aug 26, 2015 10:11 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Hi, just a note that I haven't forgotten about this. Had a busy weekend with Ludum Dare and there's still some stuff going on regarding that.

I have had a quick look at the PolyVox example and it does seem like something strange is going on. I tried to modify it to generate just a plain Perlin-noise height-field but I'm still seeing the weird sine-wave style effects. I'd really like to get the PolyVox example doing something sensible before worrying about why your Unreal version doesn't match

However, if you really want to investigate the Unreal version further you could check how many vertices/indices are being output in each case, and whether you can change the winding order or back-face culling in Unreal in case that is an issue?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Wed Aug 26, 2015 11:06 pm 

Joined: Mon Dec 30, 2013 7:52 am
Posts: 3
Hi, there is nothing wrong with my Unreal code. Maybe this image will be more helpful.

As you can see the example has double sided rendering. My unreal example doesn't.

Image


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Thu Aug 27, 2015 7:30 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
If you are concerned about the double sided rendering then it seems unlikely that PolyVox is the problem - more likely the issue is with Unreal. But to test this you should really use a simpler volume. For example, what if you set a single voxel in the volume to be solid? This should generate eight vertices and a number of indices (24 I think?) so you can easily look at the data in the Unreal debugger or even just print it out. Then you can see if Unreal is getting bad data from PolyVox, or if it is just a rendering issue.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Mon Sep 07, 2015 8:56 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I'm not sure if you are still following this but unfortunately I'm not finding time to investigate it further at the moment. I've logged it as an issue for future reference: https://bitbucket.org/volumesoffun/poly ... rs-corrupt


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PagedVolume Geometry Issue
PostPosted: Sat Dec 19, 2015 3:41 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
This was caused by the example code trying to extract a region which was too large. The example has been fixed and the issue closed: https://bitbucket.org/volumesoffun/poly ... rs-corrupt


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net