Stream: brlcad

Topic: ebm issue


view this post on Zulip Sumagna Das (Jul 25 2020 at 16:48):

hey @Sean, i made a picture of pentagon(with black background and white foreground) using my graph plotter app
ebm.png

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:48):

its resolutions are 599x599

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 16:49):

Nice

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:49):

after i converted the png to bw file(it gave a little warning which is normal), i made an ebm inside of mged using the command
in pentagon ebm f ebm.bw 599 599 20

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:50):

it came out like this on the graphic window

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:51):

ebm.png

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:51):

(look at one of the sides of the pentagon)

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:51):

it is not like the other sides

view this post on Zulip Sumagna Das (Jul 25 2020 at 16:51):

what happened here?

view this post on Zulip Sumagna Das (Jul 25 2020 at 18:40):

Screenshot-from-2020-07-26-00-10-35.png

view this post on Zulip Sumagna Das (Jul 25 2020 at 18:41):

the base of both the pentagons are weird

view this post on Zulip starseeker (Jul 25 2020 at 19:00):

Might be one pixel thick? do they raytrace?

view this post on Zulip Sean (Jul 26 2020 at 01:48):

@Sumagna Das that's just because those voxels are perfectly aligned horizontally with the axis, so the wireframe displays them more simply. The other sides are not axis-aligned, so you see the stair-stepping. That said, the real shape can be seen if you run a raytrace, like rt -s1111

view this post on Zulip Sean (Jul 26 2020 at 01:50):

if you don't like that one side is clean like that, rotate the image slightly so that no edges are axis aligned. Increasing the resolution will also help a little bit (e.g., 4096x4096) if you rotate. Then you can raytrace with hypersampling or downsampling to smooth out the result.


Last updated: Oct 09 2024 at 00:44 UTC