Ashes icon indicating copy to clipboard operation
Ashes copied to clipboard

I can't find any raytrace examples

Open trsh opened this issue 4 years ago • 20 comments

Any pointers?

trsh avatar Mar 05 '20 09:03 trsh

Here is the ray tracer demo: https://github.com/but0n/Ashes/blob/master/bvh.html

but0n avatar Mar 05 '20 09:03 but0n

Well it's not working. I got light brown screen and "1" printed in console

trsh avatar Mar 05 '20 16:03 trsh

Well it's not working. I got light brown screen and "1" printed in console

Is there other error messages in console? Can you provide the screenshot?

Currently some assets such as HDR environment textures might not available in this repository, perhaps this caused an 404 error, and the it interrupted.

but0n avatar Mar 06 '20 05:03 but0n

No other messages in console. And yes One texture was missing, I replaced it with something, but still nothing...

trsh avatar Mar 06 '20 14:03 trsh

OK, I will clean the code, make sure all these textures are available.

but0n avatar Mar 07 '20 01:03 but0n

Those textures has been removed. image

Press K to toggle debug mode and rendering mode. Press U & J for camera up and down.

but0n avatar Mar 07 '20 01:03 but0n

So I fallowed the instructions

git clone https://github.com/but0n/Ashes.git
cd Ashes

# if you don't have yarn installed
npm install -g yarn

yarn

yarn dev

opened http://127.0.0.1:8080/bvh.html in firefox&chrome (Webgl2 enabled) and nothing happens.. just slightly brown background, "1" in console and after some while the Tab starts to hang the whole browser. Btw I'm on windows 10 64bit. GPU is GTX 750 Ti

trsh avatar Mar 07 '20 12:03 trsh

You can try git clone --recursive https://github.com/but0n/Ashes.git if Ashes/gltfsamples is empty.

but0n avatar Mar 07 '20 12:03 but0n

Just did. Same thing

trsh avatar Mar 07 '20 13:03 trsh

2020-03-07_151728

trsh avatar Mar 07 '20 13:03 trsh

2020-03-07_151728

trsh avatar Mar 07 '20 13:03 trsh

Hmmm, it's weird, seems it stopped after download the first hdr cube texture: https://github.com/but0n/Ashes/blob/master/bvh.html#L94

It should be like this:

image

but0n avatar Mar 08 '20 00:03 but0n

I dont know how to fix this.

trsh avatar Mar 08 '20 08:03 trsh

I tried again with following command and it works fine:

git clone --recursive https://github.com/but0n/Ashes.git a2 && cd a2 && yarn && yarn dev

Can you visit this website and send me a report? https://webglreport.com/?v=2

but0n avatar Mar 08 '20 09:03 but0n

2020-03-08_115541

trsh avatar Mar 08 '20 09:03 trsh

Thank you, can you go to the gltfsamples folder see is there has DamagedHelmet.glb?

but0n avatar Mar 08 '20 10:03 but0n

Yes its there

trsh avatar Mar 08 '20 10:03 trsh

Thank you, I will find a similar environment and try to figure out what's going on.

but0n avatar Mar 08 '20 10:03 but0n

Hi ! I just tried and got the same problem. However, I noticed missing files : image I checked and there is no .hdr in envmap folder, not on master branch anyway, maybe you need git LFS to commit them. I would love to try those demo too :)

Muini avatar May 18 '20 18:05 Muini

@Muini Yeah, I haven't upload HDR textures yet due to certain reasons, can you check out 568bb22 ? That version doesn't requires extra HDR textures. Thank you!

but0n avatar May 19 '20 02:05 but0n