Stream: brlcad

Topic: primitives.tcl


view this post on Zulip Thusal Ranawaka (Jun 09 2020 at 15:05):

Thanks @Sean I will look on to that.

view this post on Zulip Thusal Ranawaka (Jun 09 2020 at 15:06):

Sorry I was in a online class.

view this post on Zulip Thusal Ranawaka (Jun 09 2020 at 15:07):

Sean said:

Thusal Ranawaka Your script is coming along fantastically. If you rename the file to something meaningful like "primitives.tcl" and include a header on the file (you can run "sh/header.sh pd primitives.tcl" to mark it as public domain for example), it's probably in good enough shape to get added to the main repository as an integration test.

@Sean Glad to hear.

view this post on Zulip Thusal Ranawaka (Jun 09 2020 at 15:09):

Sean said:

You might also want to check the "top" and "left" views to see how they objects are positioned with respect to each other. They're not presently on a ground plane, all sort of positioned randomly in space. Might look better to put them into a grid or have them all on a flat plane.

@Sean Yeah. I thought that too. I will change the XYZ values and try my best to place them in a flat plane.

view this post on Zulip Thusal Ranawaka (Jun 09 2020 at 15:13):

@Sean I saw this on BRL-CAD facebook page. This is what you call a flat plane know? Facebook-Personal-Microsoft-Edge-6_9_2020-8_40_51-PM.png

view this post on Zulip Sean (Jun 09 2020 at 15:26):

Yeah, it could be like that, or it could be totally different.

view this post on Zulip Sean (Jun 09 2020 at 15:26):

here's another version: https://brlcad.org/gallery/picture.php?/5/category/1

view this post on Zulip Sean (Jun 09 2020 at 15:27):

and an even older one: https://brlcad.org/gallery/picture.php?/14/category/2

view this post on Zulip Sean (Jun 09 2020 at 15:28):

a more recent one done by a student but now also incomplete: https://pdfs.semanticscholar.org/8870/da90ee803a7a21d6d0c16ec174fc2dc8b70f.pdf

view this post on Zulip Sean (Jun 09 2020 at 15:29):

It might give you some ideas to work with for the layout.

view this post on Zulip Sean (Jun 09 2020 at 15:30):

That said, I think the focus should more be on making sure first that there's an example of every single entity type first. The layout and rendering effects to make it look beautiful can come later.

view this post on Zulip Thusal Ranawaka (Jun 09 2020 at 15:31):

Yeah.

view this post on Zulip Thusal Ranawaka (Jul 07 2020 at 11:18):

Sean said:

Thusal Ranawaka Your script is coming along fantastically. If you rename the file to something meaningful like "primitives.tcl" and include a header on the file (you can run "sh/header.sh pd primitives.tcl" to mark it as public domain for example), it's probably in good enough shape to get added to the main repository as an integration test.

@Sean I renamed the myscript file as Primitives.tcl but I don't know how to include a header on the file, like where should I type it. I tried it on MGED Command Window, but it shows an error.

view this post on Zulip Sean (Jul 08 2020 at 18:30):

@Thusal Ranawaka I showed you the command you can run: sh/header.sh pd primitives.tcl

view this post on Zulip Sean (Jul 08 2020 at 18:34):

Presuming you're on Linux, that will put the header on for you. That said, if you're on Windows, you can just type a simple header like this:

#                    P R I M I T I V E S . T C L
# BRL-CAD
#
# Published in 2020 by Thusal Ranawaka.
# This work is in the public domain.
#
###

view this post on Zulip Thusal Ranawaka (Jul 09 2020 at 02:06):

Sean said:

Presuming you're on Linux, that will put the header on for you. That said, if you're on Windows, you can just type a simple header like this:

#                    P R I M I T I V E S . T C L
# BRL-CAD
#
# Published in 2020 by Thusal Ranawaka.
# This work is in the public domain.
#
###

It worked. @Sean

view this post on Zulip Thusal Ranawaka (Jul 09 2020 at 02:08):

Sean said:

Thusal Ranawaka I showed you the command you can run: sh/header.sh pd primitives.tcl

This didn't work. It says Error: Invalid command name "sh/header.sh".

view this post on Zulip Thusal Ranawaka (Jul 09 2020 at 02:09):

Anyways, I don't need it anymore. Because I typed the header that you gave me.

view this post on Zulip Sean (Jul 13 2020 at 05:40):

@Thusal Ranawaka how many entity types remain now?

view this post on Zulip Thusal Ranawaka (Jul 13 2020 at 07:41):

Hi, @Sean I did 22 objects, and about 10 or 15 left because some objects aren't declared in the create tab in mged. :grinning_face_with_smiling_eyes: Also, have a look at primitives.tcl.txt

view this post on Zulip Sean (Jul 13 2020 at 19:18):

None of the more interesting / advanced entities are on the Create tab (except sketch).

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:40):

@Sean Need help!!!!!!!!!!!!!!!!

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:44):

I converted .pix to .bw.

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:45):

@Sean No errors occured.

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:45):

Then I converted it into .dsp.

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:45):

But the file was 0 bytes.

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:46):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:46):

This is the one I used, cv huc nu16 thusal.bw thusal.dsp

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:47):

Look at the image.png

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 15:48):

And the MGED Command Window, image.png

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 16:32):

@Sean Since you are working on my DSP issue, I finished NMG, Sketch and Half. :sunglasses:

view this post on Zulip Thusal Ranawaka (Jul 23 2020 at 16:35):

Take a look, primitives.tcl.txt

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 01:02):

Thusal Ranawaka said:

I converted .pix to .bw.

@Sean Did you look at it?

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

@Thusal Ranawaka your first pix-bw is wrong

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

you didn't specify the size.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 01:26):

@Sean Why?

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

default size is 512x512

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 01:26):

oh

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 01:27):

Mine is 400x400

view this post on Zulip Sean (Jul 24 2020 at 01:29):

ergo, your first pix-bw is wrong

view this post on Zulip Sean (Jul 24 2020 at 01:29):

bbiab

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 01:33):

Sean said:

bbiab

What is this?

view this post on Zulip Sean (Jul 24 2020 at 04:19):

be back in a bit

view this post on Zulip Sean (Jul 24 2020 at 04:19):

did you get it working?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:26):

Still trying.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:31):

@Sean So, I have to convert pix-bw again?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:34):

The command should be like this, pix-bw -w400 -n400 thusal.pix > thusal.bw?

view this post on Zulip Sean (Jul 24 2020 at 04:35):

what does the usage say?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:35):

Wait a sec.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:38):

It worked.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:38):

Now bw-dsp.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:38):

@Sean Is this the command, cv huc nu16 thusal.bw thusal.dsp

view this post on Zulip Sean (Jul 24 2020 at 04:39):

you're following the tutorial right?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:39):

Still the dsp file 0 bytes.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:39):

Sean said:

you're following the tutorial right?

Righto

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:40):

image.png

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:40):

I don't know what's the problem.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:40):

The DSP file is 0 bytes.

view this post on Zulip Sean (Jul 24 2020 at 04:40):

make sure the bw worked

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:40):

It worked.

view this post on Zulip Sean (Jul 24 2020 at 04:40):

how do you know it worked?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:41):

Created a .bw file with 156 kilobytes.

view this post on Zulip Sean (Jul 24 2020 at 04:41):

again, how do you know that's correct?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:41):

No errors occured.

view this post on Zulip Sean (Jul 24 2020 at 04:41):

a lack of errors doesn't mean it worked

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:42):

So, it should respond?

view this post on Zulip Sean (Jul 24 2020 at 04:42):

I didn't say that

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:42):

image.png

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:42):

Have a look.

view this post on Zulip Sean (Jul 24 2020 at 04:42):

you're just assuming that because it didn't say anything that it worked, and that's not necessarily a valid assumption

view this post on Zulip Sean (Jul 24 2020 at 04:42):

you should check that it worked

view this post on Zulip Sean (Jul 24 2020 at 04:42):

I looked, that's not checking anything

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:42):

Hmm.

view this post on Zulip Sean (Jul 24 2020 at 04:43):

how can you check that it worked?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:43):

Try this command. bw-fb -w400 -n400 thusal.bw

view this post on Zulip Sean (Jul 24 2020 at 04:44):

right .. it's an image, so look at it -- does it display?

view this post on Zulip Sean (Jul 24 2020 at 04:44):

by the way, -s400 is a shorter alternative to -n400 -w400

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:46):

When I enter that command the display, pops for a less than second and goes away.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:47):

image.png

view this post on Zulip Sean (Jul 24 2020 at 04:48):

well that error is saying it couldn't read thusal.bw because it had 0 bytes

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:48):

Yes

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:48):

Yes

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:48):

But whats the problem with my .bw file

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:49):

But whats the problem with my .bw file

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:49):

Thusal Ranawaka said:

Yes

Zulip's weird bug. :ladybug:

view this post on Zulip Sean (Jul 24 2020 at 04:50):

I don't know -- revisit the command where you made the .bw file -- you either didn't do something right there or you did it write and later wiped out the file trying things

view this post on Zulip Sean (Jul 24 2020 at 04:50):

you have to be more methodical, make sure each step completed successfully, not assuming anything

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:51):

Yes.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:51):

Will try it from the begining

view this post on Zulip Sean (Jul 24 2020 at 04:51):

you make sure the png is correct, so make sure again and then start from there

view this post on Zulip Sean (Jul 24 2020 at 04:52):

actually, I think you make sure the pix was correct, so you could start there

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:52):

pix was correct

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:52):

I displayed it

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:52):

It worked

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:53):

Problem with .bw

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:55):

Step one, The .pix file, image.png

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:55):

image.png

view this post on Zulip Sean (Jul 24 2020 at 04:56):

okay, so next check pix-bw usage -- what does it say

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:57):

Step two, The .bw file, image.png

view this post on Zulip Sean (Jul 24 2020 at 04:58):

I said check the usage. you did not check the usage. you ran it.

view this post on Zulip Sean (Jul 24 2020 at 04:58):

what's the usage?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:59):

:oh_no:

view this post on Zulip Sean (Jul 24 2020 at 04:59):

do you not know how to check usage?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:59):

image.png

view this post on Zulip Sean (Jul 24 2020 at 04:59):

better!

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 04:59):

Sean said:

do you not know how to check usage?

Sure. :rage: :grinning_face_with_smiling_eyes:

view this post on Zulip Sean (Jul 24 2020 at 05:00):

so see anything you might have specified wrong? or didn't specify?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:01):

Yes.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:01):

Might try -o instead of >

view this post on Zulip Sean (Jul 24 2020 at 05:01):

you could try that, but > is in the usage, so that should be right

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:02):

Yes.

view this post on Zulip Sean (Jul 24 2020 at 05:02):

also looks like input can just be listed or can be redirected, so that looks specified correctly

view this post on Zulip Sean (Jul 24 2020 at 05:02):

so then perhaps it's something you didn't specify...

view this post on Zulip Sean (Jul 24 2020 at 05:03):

what are any of the options you didn't specify?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:06):

@Sean I didn't specify, -s -e -R -G -B

view this post on Zulip Sean (Jul 24 2020 at 05:06):

more than that -- you didn't specify any options

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:06):

Also, -w and -n

view this post on Zulip Sean (Jul 24 2020 at 05:07):

so think about that

view this post on Zulip Sean (Jul 24 2020 at 05:07):

what are -n and -w or -s required? when are they not required?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:07):

Will try with -w and -n

view this post on Zulip Sean (Jul 24 2020 at 05:07):

don't try, understand first ...

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:08):

Okay.

view this post on Zulip Sean (Jul 24 2020 at 05:08):

when are they required?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:08):

What do you mean?

view this post on Zulip Sean (Jul 24 2020 at 05:08):

I mean when must you specify -n -w or -s ?

view this post on Zulip Sean (Jul 24 2020 at 05:09):

and when do you not need to?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:09):

When converting a file. :thinking:

view this post on Zulip Sean (Jul 24 2020 at 05:09):

not exactly

view this post on Zulip Sean (Jul 24 2020 at 05:10):

have you read the manual page for any of these commands?

view this post on Zulip Sean (Jul 24 2020 at 05:10):

you don't need to, I'm just wondering

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:10):

Uh... No

view this post on Zulip Sean (Jul 24 2020 at 05:11):

I don't know if it runs on windows -- try running "brlman pix-fb"

view this post on Zulip Sean (Jul 24 2020 at 05:12):

if that doesn't work, run "man pix-fb" in mged

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:12):

The first command ran, No errors, No replies.

view this post on Zulip Sean (Jul 24 2020 at 05:12):

did it display a window?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:13):

No

view this post on Zulip Sean (Jul 24 2020 at 05:13):

try the second one in mged

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:15):

Do I have to change the directory in MGED.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:15):

I ran, errors

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:15):

Error: couldn't find manual page "pix-fb"

view this post on Zulip Sean (Jul 24 2020 at 05:24):

okay, then will revisit that later

view this post on Zulip Sean (Jul 24 2020 at 05:24):

so back to the options

view this post on Zulip Sean (Jul 24 2020 at 05:25):

do you remember why you specified -n and -w on pix-fb?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:26):

Yeah. The dimensions of the image.

view this post on Zulip Sean (Jul 24 2020 at 05:26):

but why?

view this post on Zulip Sean (Jul 24 2020 at 05:26):

that's what

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:26):

To display the whole pix.

view this post on Zulip Sean (Jul 24 2020 at 05:27):

but why did you need to say -n400 ?

view this post on Zulip Sean (Jul 24 2020 at 05:27):

why did that make it display the pix?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:28):

Because it's the height of pix.

view this post on Zulip Sean (Jul 24 2020 at 05:28):

but you didn't have to specify a height on png-pix ..

view this post on Zulip Sean (Jul 24 2020 at 05:28):

why?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:29):

Uh...............

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:29):

Because it automatically converts with the correct dimensions?

view this post on Zulip Sean (Jul 24 2020 at 05:30):

yes! and how do you think png-pix knows the correct dimensions?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:30):

Uh.... The Code.

view this post on Zulip Sean (Jul 24 2020 at 05:31):

nope

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:31):

I have no idea. Feel like a nerd. :nerd:

view this post on Zulip Sean (Jul 24 2020 at 05:31):

png-pix knows... because the png file knows

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:32):

Its dimensions

view this post on Zulip Sean (Jul 24 2020 at 05:32):

the size of the image is embedded into the png file itsel

view this post on Zulip Sean (Jul 24 2020 at 05:32):

right, the dimensions are encoded into it

view this post on Zulip Sean (Jul 24 2020 at 05:33):

that's because it's a complex format, lots of options, a data header, encoding options, and much more ... but the important part to realize is that the PNG file itself holds dimension inormation

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:33):

Hmm

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:34):

So, I don't have to specify -n and -w?

view this post on Zulip Sean (Jul 24 2020 at 05:34):

the PIX and BW formats are fundamental simple streams of bytes, some image programs call them "raw" images

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:34):

ohhh

view this post on Zulip Sean (Jul 24 2020 at 05:34):

these raw images have no header, no size information, nothing. they are just a stream of pixel values

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:34):

Yep

view this post on Zulip Sean (Jul 24 2020 at 05:34):

so you ALWAYS have to specify their size when working with them

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:34):

Oh

view this post on Zulip Sean (Jul 24 2020 at 05:35):

because the tools have no way of knowing

view this post on Zulip Sean (Jul 24 2020 at 05:35):

the image doesn't know

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:36):

Yes

view this post on Zulip Sean (Jul 24 2020 at 05:36):

so back to your pix-bw conversion... what did you do wrong?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:36):

I didn't specify the dimensions.

view this post on Zulip Sean (Jul 24 2020 at 05:36):

bingo.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:37):

Do I have to do it in the .pix too?

view this post on Zulip Sean (Jul 24 2020 at 05:37):

so try that, then verify the bw with bw-fb

view this post on Zulip Sean (Jul 24 2020 at 05:37):

Thusal Ranawaka said:

Do I have to do it in the .pix too?

what?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:37):

Sean said:

Thusal Ranawaka said:

Do I have to do it in the .pix too?

what?

Do I need to specify in dimensions in png-pix, too?

view this post on Zulip Sean (Jul 24 2020 at 05:38):

well did you?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:38):

No

view this post on Zulip Sean (Jul 24 2020 at 05:38):

why?

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:38):

Never mind, I will try pix-bw first. See if that works

view this post on Zulip Sean (Jul 24 2020 at 05:39):

ooof.. if you don't understand this, then you're likely to continue to have problems

view this post on Zulip Sean (Jul 24 2020 at 05:39):

why didn't you need to speciy dimensions with png-pix?

view this post on Zulip Sean (Jul 24 2020 at 05:39):

you just said the right answer 5 minutes ago...

view this post on Zulip Sean (Jul 24 2020 at 05:40):

or I said it I suppose

view this post on Zulip Sean (Jul 24 2020 at 05:41):

okay, I'm going to rest then. good luck.

view this post on Zulip Sean (Jul 24 2020 at 05:42):

the answer was that you don't need to specify with png-pix because the png image has dimension in it and it's the input, so the tool knows how big the image is when writing out the pix output.

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:43):

Sean said:

you just said the right answer 5 minutes ago...

:nerd:

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:43):

Sean said:

okay, I'm going to rest then. good luck.

Good Night! :goodnight:

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 05:44):

@Sean So, the correct command should be like this, pix-bw -w400 -n400 thusal.pix > thusal.bw

view this post on Zulip Thusal Ranawaka (Jul 24 2020 at 14:45):

@Sean Good Morning! :sunrise: Bad News, I did exactly what you said, specified the dimensions. But it didn't work when I ran bw-fb. A windows just pops-up and goes away.

view this post on Zulip Sean (Jul 24 2020 at 20:22):

@Thusal Ranawaka post your bw image here, I can inspect it

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:08):

Sean said:

Thusal Ranawaka post your bw image here, I can inspect it

@Sean I can't inspect the image, it just pops up and goes.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:09):

or You mean the converted .bw file?

view this post on Zulip Sean (Jul 25 2020 at 01:11):

yes, and the pix

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:11):

@Sean thusal.bw

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:12):

thusal.pix

view this post on Zulip Sean (Jul 25 2020 at 01:14):

So it created your .bw file correctly...

view this post on Zulip Sean (Jul 25 2020 at 01:14):

Screen-Shot-2020-07-24-at-9.14.17-PM.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:14):

Yep

view this post on Zulip Sean (Jul 25 2020 at 01:14):

that's bw-pix run here

view this post on Zulip Sean (Jul 25 2020 at 01:14):

er bw-fb I mean

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:15):

Sean said:

Screen-Shot-2020-07-24-at-9.14.17-PM.png

Is this the .bw file?

view this post on Zulip Sean (Jul 25 2020 at 01:15):

yep

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:15):

Wow

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:15):

In my PC, it just pops up

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:15):

less than a millisceond

view this post on Zulip Sean (Jul 25 2020 at 01:15):

what operating system?

view this post on Zulip Sean (Jul 25 2020 at 01:16):

Windows?

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

WINDOWS

view this post on Zulip Sean (Jul 25 2020 at 01:16):

and you ran: bw-fb -s400 thusal.bw

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

Yes

view this post on Zulip Sean (Jul 25 2020 at 01:16):

did it display any message?

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

No

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:17):

Even bw-fb -w400 -n400 thusal.bw

view this post on Zulip Sean (Jul 25 2020 at 01:17):

did you run it on the Windows command prompt or mged?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:17):

Command Prompt. :rage:

view this post on Zulip Sean (Jul 25 2020 at 01:17):

okay good, just checking

view this post on Zulip Sean (Jul 25 2020 at 01:18):

try bw-fb -s400 -F/dev/wgll thusal.bw

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:19):

Still the same.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:19):

Pops up and goes

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 01:20):

Got a message called, bw-fb: read got 0, s/b 160000

view this post on Zulip Sean (Jul 25 2020 at 02:23):

hm, so you must have found some bug in bw-fb on Windows

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:23):

Yeah. :sunglasses:

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

@Sean So.....

view this post on Zulip Sean (Jul 25 2020 at 02:25):

doesn't matter -- the bw is correct, so what's the next step?

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

bw-dsp

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:26):

But everytime I convert bw-dsp

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:26):

The file is 0 bytes

view this post on Zulip Sean (Jul 25 2020 at 02:27):

there is no bw-dsp tool...

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:27):

What?

view this post on Zulip Sean (Jul 25 2020 at 02:28):

show me the command you're trying to rn

view this post on Zulip Sean (Jul 25 2020 at 02:28):

run

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:29):

Sean said:

there is no bw-dsp tool...

Sorry, my bad

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:29):

@Sean cv huc nu16 thusal.bw thusal.dsp

view this post on Zulip Sean (Jul 25 2020 at 02:30):

try svn huc nus < thusal.bw > thusal.dsp

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:31):

@Sean 'svn' is not recognized as an internal or external command,
operable program or batch file.

view this post on Zulip Sean (Jul 25 2020 at 02:31):

bah, cv

view this post on Zulip Sean (Jul 25 2020 at 02:31):

typo

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:32):

Still 0 bytes

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:32):

image.png

view this post on Zulip Sean (Jul 25 2020 at 02:33):

I think I see what the problem is. Known issue on windows. A lot of the command-line tools haven't been ported properly to Windows.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:33):

Hmm

view this post on Zulip Sean (Jul 25 2020 at 02:34):

Did you do any coding tasks for GCI?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:34):

Yes.

view this post on Zulip Sean (Jul 25 2020 at 02:34):

did you compile BRL-CAD?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:34):

No.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:34):

It's beginner task

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:35):

At that time, I already completed 2 beginner tasks

view this post on Zulip Sean (Jul 25 2020 at 02:36):

So if you want to really get into coding, you could totally fix these bugs. They're pretty simple, but you'll have to follow the compilation instructions and get that working first.

view this post on Zulip Sean (Jul 25 2020 at 02:38):

The problem is there's code that opens the input/output files. This code is usually a call to open() or another function called fopen().

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:39):

oh

view this post on Zulip Sean (Jul 25 2020 at 02:39):

When you open a file with code, you have to specify how to open the file -- for example whether you're only reading the file or whether you're going to read-and-write to the file.

view this post on Zulip Sean (Jul 25 2020 at 02:40):

That's sufficient for Linux and Mac, but on Windows, you ALSO have to tell it when the files are binary files.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:40):

I really love to work on a ACTUAL coding, but I am still a newbie to coding.

view this post on Zulip Sean (Jul 25 2020 at 02:41):

We've done that for a lot of tools, but there are hundreds of calls that need to be updated. That's the case with bw-fb and cv, why they're not working.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:42):

Hmm

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:43):

But I can work on it. If you help me.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:44):

@Sean It's good for my knowledge and I can do some actual contributing to open source (mean BRL-CAD). :mortar_board:

view this post on Zulip Sean (Jul 25 2020 at 02:44):

that'd be great

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:44):

So, Do I have to skip DSP in primitives.tcl

view this post on Zulip Sean (Jul 25 2020 at 02:44):

so you'll have some homework, compile brl-cad. there are instructions on the wiki

view this post on Zulip Sean (Jul 25 2020 at 02:44):

no, here

view this post on Zulip Sean (Jul 25 2020 at 02:45):

thusal.dsp

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:45):

Okay

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:45):

Boom! You made it.

view this post on Zulip Sean (Jul 25 2020 at 02:45):

use the 'bo' command to import it into the .g file, then you should be able to create a dsp that references it.

view this post on Zulip Sean (Jul 25 2020 at 02:46):

similar with the bw, you can create an ebm

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:46):

Okay

view this post on Zulip Sean (Jul 25 2020 at 02:46):

here's build steps: https://brlcad.org/wiki/Building_from_SVN

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:47):

So, I have to download TortoiseSVN?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:48):

I uninstalled it 2 days ago.

view this post on Zulip Sean (Jul 25 2020 at 02:49):

heh

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

But I have some problems with the network. My Wi-Fi quota exceeded about a week ago. When it's exceeded the usual speed is 100Mbps, but now 64Kbps. :sad:

view this post on Zulip Sean (Jul 25 2020 at 02:49):

any svn client will work

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:52):

Sean said:

use the 'bo' command to import it into the .g file, then you should be able to create a dsp that references it.

bo command?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:55):

I just checked the usage

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:59):

the bo command doesn't work

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 02:59):

I tried it in MGED

view this post on Zulip Sean (Jul 25 2020 at 02:59):

how'd you try to use it?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:00):

bo thusal.dsp -o thusal.g

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:00):

It's wrong

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

The correct command?

view this post on Zulip Sean (Jul 25 2020 at 03:05):

well you said you checked usage, you see that there's a type parameter?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:05):

Yes

view this post on Zulip Sean (Jul 25 2020 at 03:05):

you need to tell it that the file is unsigned 16-bit data

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:05):

So..

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:05):

bo {-i major_type minor_type | -o} dest source

view this post on Zulip Sean (Jul 25 2020 at 03:07):

try "u S"

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:09):

Is this correct, bo u S thusal.dsp -o thusal.g ?

view this post on Zulip Sean (Jul 25 2020 at 03:09):

nope

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:10):

then?

view this post on Zulip Sean (Jul 25 2020 at 03:10):

bo -i u S thusal.data thusal.dsp

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:12):

Cannot stat input file (thusal.dsp)
Error: Error creating thusal.data

view this post on Zulip Sean (Jul 25 2020 at 03:13):

you got to be able to figure some of this out on your own...

view this post on Zulip Sean (Jul 25 2020 at 03:13):

that's a pretty basic error, do you not understand what it means?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:14):

It can't find the DSP file?

view this post on Zulip Sean (Jul 25 2020 at 03:14):

yep

view this post on Zulip Sean (Jul 25 2020 at 03:14):

so it's not in whatever default directory it's looking... so ...

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:15):

I can't concentrate, I am on an online class

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:15):

I tried cd

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:15):

but shows me errors

view this post on Zulip Sean (Jul 25 2020 at 03:16):

I'm going to let you try this for a while. you can run "man bo" in mged to read more help, but this is something you should be able to figure out

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

It worked

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

The bo command worked

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:18):

So, it creates a .g file?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:24):

image.png \

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:26):

image.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:26):

Tried it in both ways.

view this post on Zulip Sean (Jul 25 2020 at 03:26):

both?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:27):

bo command and in thusal1.s dsp f thusal.dsp 400 400 0 ad 1 0.005

view this post on Zulip Sean (Jul 25 2020 at 03:28):

looks like you created a dsp

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:28):

What?

view this post on Zulip Sean (Jul 25 2020 at 03:29):

try different height values

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:30):

You mean ae 270 90 ?

view this post on Zulip Sean (Jul 25 2020 at 03:31):

no, different dsp heights

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:34):

I tried **in thusal1.s dsp f thusal.dsp 400 400 0 ad 1 0.005** first, might try in thusal1.s dsp f thusal.dsp 400 300 0 ad 1 0.005

view this post on Zulip Sean (Jul 25 2020 at 03:34):

whaaat?

view this post on Zulip Sean (Jul 25 2020 at 03:34):

I'm guessing you have no idea what all that means

view this post on Zulip Sean (Jul 25 2020 at 03:35):

just type "in" and follow the prompts

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:37):

I typed in

view this post on Zulip Sean (Jul 25 2020 at 03:38):

hit enter

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:38):

did it

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:38):

In mged

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:39):

then

view this post on Zulip Sean (Jul 25 2020 at 03:39):

then answer the prompts

view this post on Zulip Sean (Jul 25 2020 at 03:40):

they are identical to the long lines you typed, but they're interactive

view this post on Zulip Sean (Jul 25 2020 at 03:40):

the prompts will help you understand what the values mean

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:43):

Is this correct? image.png

view this post on Zulip Sean (Jul 25 2020 at 03:45):

I don't know what you mean by correct

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:45):

Is this the process?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:45):

You said to me to type 'in'

view this post on Zulip Sean (Jul 25 2020 at 03:45):

yes, you are answering 'in' command prompts ...

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:45):

So, I am following the prompts

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:50):

@Sean It asks, Normal Interpolation? 0=no 1=yes:

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:50):

Answer?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:50):

I don't know what Interpolation means.

view this post on Zulip Sean (Jul 25 2020 at 03:51):

just give it the same answer you gave when you did it without prompts

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 03:52):

@Sean Interpolation = -i ?

view this post on Zulip Sean (Jul 25 2020 at 04:13):

you never specified "-i" in the unprompted version

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 04:14):

No

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 04:55):

Sean said:

just give it the same answer you gave when you did it without prompts

What do you mean? @Sean

view this post on Zulip Sean (Jul 25 2020 at 04:56):

you ran the 'in' command before, yes?

view this post on Zulip Sean (Jul 25 2020 at 04:56):

you've first ran it without prompts. you just copy-pasted it from the wiki.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 04:56):

Yes.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 04:56):

Then?

view this post on Zulip Sean (Jul 25 2020 at 04:56):

running it with prompts is identical.....

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 04:56):

Okay

view this post on Zulip Sean (Jul 25 2020 at 04:56):

the responses are identical, it just explains them to you between each response

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:02):

@Sean So, I never specified any Interpolations?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:08):

I created it.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:14):

@Sean Have a look, image.png

view this post on Zulip Sean (Jul 25 2020 at 05:15):

you told it to read from a file. the whole point of the 'bo' command was so that it'd read from an object instead

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:15):

thusal.s

view this post on Zulip Sean (Jul 25 2020 at 05:16):

i mean, it's not wrong -- it's just not what you were working on

view this post on Zulip Sean (Jul 25 2020 at 05:16):

you can make dsp that read from a file too -- that also works -- but that means you have to copy the data file around with the .g file. if you import it as an object, you don't need to do that.

view this post on Zulip Sean (Jul 25 2020 at 05:18):

you can run "kill dsp" and then up-arrow to edit the 'in' command you just did to replace the 'f'ile response with an 'o'bject response

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:44):

@Sean Shows some errors,
db_lookup(thusal.dsp) failed: thusal.dsp does not exist
Cannot retrieve DSP data from object "thusal.dsp"
rt_dsp_import4(4420) 'thusal.dsp' unable to load displacement map data
rt_db_external5_to_internal5(dsp): import failure
db_recurse() rt_db_get_internal(dsp) FAIL

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:44):

Used this command, in dsp dsp o thusal.dsp 400 400 1 ad 1 0.05

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:47):

Should it be in dsp dsp o thusal.s 400 400 1 ad 1 0.05 ?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:59):

@Sean I think I did it correct this time, in dsp dsp o thusal.data 400 400 1 ad 1 0.05

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 05:59):

It worked without errors.

view this post on Zulip Sean (Jul 25 2020 at 05:59):

l thusal.data

view this post on Zulip Sean (Jul 25 2020 at 06:00):

run "l thusal.data"

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:01):

So, it's success?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:01):

thusal.data: uniform-array binary object (BINUNIF)
160000 unsigned 16-bit ints

view this post on Zulip Sean (Jul 25 2020 at 06:01):

excellent

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:02):

It created a BINUNIF.

view this post on Zulip Sean (Jul 25 2020 at 06:02):

so yes, you imported the dsp data correctly, and created an object called dsp that is using that data object

view this post on Zulip Sean (Jul 25 2020 at 06:03):

so now back to the original goal ... make the dsp taller

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:03):

Now I have to add in dsp dsp o thusal.data 400 400 1 ad 1 0.05 command to Primitives.tcl

view this post on Zulip Sean (Jul 25 2020 at 06:03):

which I think you did, from 0.005 to 0.05 ?

view this post on Zulip Sean (Jul 25 2020 at 06:03):

what's that look like?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:03):

Righto

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:03):

Righto

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:04):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:04):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:04):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:04):

Sean said:

which I think you did, from 0.005 to 0.05 ?

Yes.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:05):

So, now I have to add this in dsp dsp o thusal.data 400 400 1 ad 1 0.05 command to Primitives.tcl?

view this post on Zulip Sean (Jul 25 2020 at 06:07):

what's that dsp look like?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:08):

image.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:08):

Pretty Nice.

view this post on Zulip Sean (Jul 25 2020 at 06:08):

did you rotate it?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:09):

No.

view this post on Zulip Sean (Jul 25 2020 at 06:09):

rather ... try rotating it

view this post on Zulip Sean (Jul 25 2020 at 06:09):

see what it really looks like in 3d

view this post on Zulip Sean (Jul 25 2020 at 06:10):

what's it look like at ae 35 25?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:13):

image.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:13):

Looks like a ancient fossil.

view this post on Zulip Sean (Jul 25 2020 at 06:13):

Excellent!

view this post on Zulip Sean (Jul 25 2020 at 06:14):

now the reason for the big square is because your image background was not actually black, but just a dark gray

view this post on Zulip Sean (Jul 25 2020 at 06:14):

try this dsp:

view this post on Zulip Sean (Jul 25 2020 at 06:14):

thusal.dsp

view this post on Zulip Sean (Jul 25 2020 at 06:15):

all you need to do is the bo command to import it again

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:15):

Okay.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:15):

So, you removed the background?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:30):

@Sean Boom! Look at that, image.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:30):

@Sean Boom! Look at that, image.png

view this post on Zulip Sean (Jul 25 2020 at 06:31):

that looks better

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:32):

@Sean So, now?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:35):

image.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:45):

Should I add it to the Primitives.tcl?

view this post on Zulip Sean (Jul 25 2020 at 06:45):

sure

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:46):

So, I should add in dsp dsp o thusal.data 400 400 1 ad 1 0.05

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:47):

Added.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:47):

primitives.tcl.txt

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:48):

Do I need to add 'bo' command too?

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:48):

Otherwise it doesn't work

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:51):

@Sean Have a look, primitives.tcl.txt

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:51):

See if there are any errors.

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 06:54):

Now it's time for extrude

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 15:11):

@Sean EBM image.png

view this post on Zulip Thusal Ranawaka (Jul 25 2020 at 15:12):

image.png

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

@Sean Today's update of Primitives.tcl, did DSP, EBM, part and extrude.

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

Check primitives.tcl.txt

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

Did you try your logo as an ebm? little different than dsp

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 02:15):

@Sean Uh...Yeah. But it creates a cube-like square when I drew it in mged.

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:22):

@Sean Not the skeleton.

view this post on Zulip Sean (Jul 26 2020 at 03:25):

that's because your background isn't black

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:26):

How should I fix it?

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

you have no zero values

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

you can paint the background black

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

you can use one of our tools to threshold the image

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

bwthresh 50 < img.bw > img2.bw

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:38):

Sean said:

bwthresh 50 < img.bw > img2.bw

@Sean In Command Prompt?

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:39):

I tried but the file was 0 bytes.

view this post on Zulip Sean (Jul 26 2020 at 03:51):

what was your command?

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:53):

bwthresh 50 < thusal.bw > thusal.bw

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:53):

First command, png-bw thusal.png > thusal.bw

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 03:54):

Second command, bwthresh 50 < thusal.bw > thusal.bw

view this post on Zulip Sean (Jul 26 2020 at 03:58):

gah, you can't do that

view this post on Zulip Sean (Jul 26 2020 at 03:59):

you can't input from and output to the exact same file -- it'll just wipe it out

view this post on Zulip Sean (Jul 26 2020 at 03:59):

so you need to recreate the bw file again

view this post on Zulip Sean (Jul 26 2020 at 03:59):

then try creating a NEW bw file with bwthresh

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 04:02):

@Sean Sorry, it's typo

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 04:03):

@Sean This is what I tried, bwthresh 50 < thusal.bw > thusal2.bw

view this post on Zulip Sean (Jul 26 2020 at 04:05):

okay, hm.

view this post on Zulip Sean (Jul 26 2020 at 04:05):

well, you can just paint the background 0,0,0

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 04:05):

Using mged?

view this post on Zulip Sean (Jul 26 2020 at 04:05):

no, using any basic paint program

view this post on Zulip Thusal Ranawaka (Jul 26 2020 at 04:09):

Okay

view this post on Zulip Sean (Jul 26 2020 at 04:14):

(on the original png, the reconvert to bw)

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 13:39):

@Sean Sorry, I didn't get any time to work on ESP. Because I had some personal stuff to do.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 13:40):

And trying to assign a black color to the background.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 13:46):

@Sean Is it look better now? thusal1.png

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 13:50):

Now it's black, eh?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:13):

@Sean :heart_eyes: image.png

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:22):

image.png

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:25):

@Sean Is there is a command that you can draw all the objects in a database?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:25):

The objects that you created.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:34):

@Sean Is this Datum correct or do I need to modify more?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:34):

image.png

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:34):

in datum datum plane 0 0 0 0 1 0

view this post on Zulip Sean (Jul 27 2020 at 14:40):

Thusal Ranawaka said:

Sean Sorry, I didn't get any time to work on ESP. Because I had some personal stuff to do.

How DARE you have personal stuff .... haha

view this post on Zulip Sean (Jul 27 2020 at 14:43):

Thusal Ranawaka said:

Sean Is this Datum correct or do I need to modify more?

I would suggest creating a more complex datum that is three planes (for X Y and Z), three lines (for -X, -Y, and -Z), and one point at the origin.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:43):

Sean said:

Thusal Ranawaka said:

Sean Sorry, I didn't get any time to work on ESP. Because I had some personal stuff to do.

How DARE you have personal stuff .... haha

Sorry, I have some problems with English, sometimes. :happy: Actually, I went to our relatives' house yesterday, played cricket all day long and had some fun after lockdown and today I had some classes and felt very tired.

view this post on Zulip Sean (Jul 27 2020 at 14:45):

Thusal Ranawaka said:

Sean Is there is a command that you can draw all the objects in a database?

If you have not created combinations, then you can use globbing (e.g., "draw *"). However, the better way is to create a combination of all the objects, then you just draw that. Running the "tops" command will show the top combinations (i.e., combinations that aren't referenced by any other combinations).

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:45):

Hmm

view this post on Zulip Sean (Jul 27 2020 at 14:46):

If you can create one of every object type, we can integrate it into the repository as a testing example.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:48):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 14:52):

in grip grip 1 0.5 0.0100 1 0 0 2.30 Just finished grip

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 15:38):

@Sean in hyp hyp 0 0 0 0 0 3 0 1.5 0 0.75 0.4 Finished hyp

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 15:55):

@Sean I think I created all the objects, that you can create using the make command except bot and datum.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 15:55):

bot and datum are harder to make.

view this post on Zulip Sean (Jul 27 2020 at 16:03):

@Thusal Ranawaka For BoT, you could create an NMG, https://brlcad.org/wiki/NMG
and then convert the nmg to bot with the facetize command

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:04):

Okay.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:05):

I just want to scale my DSP as it was very big.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:05):

But need some help.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:05):

image.png

view this post on Zulip Sean (Jul 27 2020 at 16:06):

alternatively, can import a simple bot model using any of the converters

view this post on Zulip Sean (Jul 27 2020 at 16:06):

like teapot

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:06):

This is the difference between before I scale and after I scaled.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:07):

But how should I add this command to primitives.

view this post on Zulip Sean (Jul 27 2020 at 16:07):

it sounds like you need to learn how to do command-line transformations

view this post on Zulip Sean (Jul 27 2020 at 16:08):

the most simple way would be to use the sed + tra/sca/rot + accept commands

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:08):

I know how to use tra sed and most of the commands

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:09):

Sean said:

the most simple way would be to use the sed + tra/sca/rot + accept commands

So, it's sca

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:09):

That's all I need.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:09):

Thanks @Sean

view this post on Zulip Sean (Jul 27 2020 at 16:09):

look at regress/mged/tra_edit.mged for an example

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:09):

Thusal Ranawaka said:

Sean said:

the most simple way would be to use the sed + tra/sca/rot + accept commands

So, it's sca

I used scale command that's why I was stuck.

view this post on Zulip Sean (Jul 27 2020 at 16:10):

one is absolute, the other is relative

view this post on Zulip Sean (Jul 27 2020 at 16:11):

sca example: regress/mged/sca_edit.mged

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:11):

Alright

view this post on Zulip Sean (Jul 27 2020 at 16:13):

@starseeker what's the status of regress/mged .. is it running both the tcl and shell script tests?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:21):

@Sean I used the sca command, but the size of ebm didn't change.

view this post on Zulip starseeker (Jul 27 2020 at 16:24):

I believe regress/mged is running both, yes

view this post on Zulip Sean (Jul 27 2020 at 16:24):

great

view this post on Zulip starseeker (Jul 27 2020 at 16:25):

The regress-mged test runs the old shell test, and the regress-mged-<cmd> tests run the others.

view this post on Zulip starseeker (Jul 27 2020 at 16:25):

The latter run in parallel now - I think I got that working relatively recently

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

@Sean image.png image.png

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

You can see.

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

I have used sed and sca commands, but it didn't change.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 16:54):

@Sean Aligning the objects, until you replies.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:04):

(deleted)

view this post on Zulip Sean (Jul 27 2020 at 17:21):

@Thusal Ranawaka I really hate repeating info that was provided.. did you look at the examples?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:22):

regress/mged/sca.edit?

view this post on Zulip Sean (Jul 27 2020 at 17:23):

...

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:23):

It's at the SVN repo?

view this post on Zulip Sean (Jul 27 2020 at 17:27):

So then you definitely didn't look at the example!

view this post on Zulip Sean (Jul 27 2020 at 17:28):

that becomes very frustrating for me, because it makes me repeat myself and wastes both of our time.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:29):

I couldn't find it, that's why.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:33):

Found it. :rage:

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:44):

The sca command only largens the object, not decreses.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 17:46):

@Sean The update of Primitives.tcl, primitives.tcl.txt :rage:

view this post on Zulip Sean (Jul 27 2020 at 18:01):

Thusal Ranawaka said:

The sca command only largens the object, not decreses.

This is not true.

view this post on Zulip Sean (Jul 27 2020 at 18:01):

it's a scaling factor

view this post on Zulip Sean (Jul 27 2020 at 18:03):

10 will make an object 10 times bigger. what factor would make it half as big?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:04):

I used '-' mark to decrease, but didn't work.

view this post on Zulip Sean (Jul 27 2020 at 18:05):

that's not what you learned in school

view this post on Zulip Sean (Jul 27 2020 at 18:05):

ever

view this post on Zulip Sean (Jul 27 2020 at 18:05):

this isn't addition and subtraction, it's scaling, multiplication

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:06):

/ is this correct

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:06):

division

view this post on Zulip Sean (Jul 27 2020 at 18:06):

10 times what factor equals 20 ?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:07):

2?

view this post on Zulip Sean (Jul 27 2020 at 18:07):

yes

view this post on Zulip Sean (Jul 27 2020 at 18:07):

10 times what factor equals 5 ?

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:07):

4

view this post on Zulip Sean (Jul 27 2020 at 18:07):

10 times 4 is 40

view this post on Zulip Sean (Jul 27 2020 at 18:07):

so no

view this post on Zulip Sumagna Das (Jul 27 2020 at 18:07):

0.5

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:07):

sorry

view this post on Zulip Sumagna Das (Jul 27 2020 at 18:07):

?

view this post on Zulip Sean (Jul 27 2020 at 18:08):

10 times 0.5 is 5, yes

view this post on Zulip Sean (Jul 27 2020 at 18:08):

0.5 is the factor that makes 10 half as large as it was

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:08):

makes smaller

view this post on Zulip Sean (Jul 27 2020 at 18:09):

i.e., makes it smaller, yes

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:17):

Have to scale 0.025 times from the actual scale to make it to the correct size.

view this post on Zulip Thusal Ranawaka (Jul 27 2020 at 18:23):

or maybe even smaller

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 02:20):

I set it to 0.00125

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:43):

@Sean , I downloaded the new version of BRL-CAD 7.30.8, I had 7.26.0. But instead making things easier, it's now harder.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:43):

What is this? image.png

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 15:49):

Looks like you started mged without a database, and then you opened a read-only one (probably one from the example databases).

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:50):

I opened mged just like normal and then went to open section and opened a database

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:52):

Trying re-installing BRL-CAD on a different path.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 15:52):

Thusal Ranawaka said:

Trying re-installing BRL-CAD on a different path.

Why? It works as expected.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:53):

Yeah, I had some more couple of issues as well, but I think I know the answer for them.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 15:54):

Thusal Ranawaka said:

I opened mged just like normal...

This is the first error message: You started mged without giving it a database. This is the usual behavior when starting it from the app icon.

...and then went to open section and opened a database

Obviously a read-only one.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:55):

Daniel Rossberg said:

Thusal Ranawaka said:

I opened mged just like normal...

This is the first error message: You started mged without giving it a database. This is the usual behavior when starting it from the app icon.

...and then went to open section and opened a database

Obviously a read-only one.

So, it's a change in the new version?

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:56):

Daniel Rossberg said:

Thusal Ranawaka said:

I opened mged just like normal...

This is the first error message: You started mged without giving it a database. This is the usual behavior when starting it from the app icon.

...and then went to open section and opened a database

Obviously a read-only one.

No, It's not a read-only one, that is the database that I been working on Primitives.tcl.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 15:57):

Thusal Ranawaka said:

So, it's a change in the new version?

No, same as before.

The difference may be that the old version was installed without admin rights in your user folder and you could write all installed files this way.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:58):

Daniel Rossberg said:

No, same as before.

The difference may be that the old version was installed without admin rights in your user folder and you could write all installed files this way.

I don't remember, Yeah, I didn't install it. I took the Zip file from sourceforge

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 15:59):

Then extracted it. It worked perfectly.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 16:00):

Which zip file?

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:01):

There's a .zip file in BRL-CAD Source, I think.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 16:01):

I can't find one: https://sourceforge.net/projects/brlcad/files/BRL-CAD%20for%20Windows/7.26.0/

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:01):

But I tried it now. Set .g files to open in mged. And worked.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:02):

Daniel Rossberg said:

I can't find one: https://sourceforge.net/projects/brlcad/files/BRL-CAD%20for%20Windows/7.26.0/

I do not recall very much, will show you.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 16:03):

If I remember correctly, the old version installed the program in your personal folder if it was started without admin privileges.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:04):

Yes. I think.

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:05):

Thusal Ranawaka said:

Daniel Rossberg said:

I can't find one: https://sourceforge.net/projects/brlcad/files/BRL-CAD%20for%20Windows/7.26.0/

I do not recall very much, will show you.

This is it, https://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/7.26.0/

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:08):

Anyways, 7.30.8 worked. The Graphics Window turns to a dark blue color when you open a database. LOL :grinning_face_with_smiling_eyes:

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:08):

Thusal Ranawaka said:

Anyways, 7.30.8 worked. The Graphics Window turns to a dark blue color when you open a database. LOL :grinning_face_with_smiling_eyes:

It didn't happen on 7.26.0.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 16:09):

Thusal Ranawaka said:

This is it, https://sourceforge.net/projects/brlcad/files/BRL-CAD%20Source/7.26.0/

This are the sources(?)

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:10):

Yeah.

view this post on Zulip Daniel Rossberg (Jul 28 2020 at 16:10):

Did you compiled it from sources?

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:10):

I think that's where I get BRL-CAD 7.26.0

view this post on Zulip Thusal Ranawaka (Jul 28 2020 at 16:11):

Daniel Rossberg said:

Did you compiled it from sources?

Nope

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 02:27):

Sean said:

Thusal Ranawaka For BoT, you could create an NMG, https://brlcad.org/wiki/NMG
and then convert the nmg to bot with the facetize command

@Sean I did NMG, but I am not fancy with that facetize command. Looking on to the wikis'

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 03:11):

@Sean @Daniel Rossberg Completed and Uncompleted objects of Primitives.tcl.txt (According to info that I have and from the wiki)
Arbitary,

Ellipsoids

Cones and Cylinders

Derived from 2D

(Uncompleted)

Other Solids

(Uncompleted)

Other

(Uncompleted)

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 03:14):

Altogether 31 objects completed, 10 uncompleted.

view this post on Zulip Sumagna Das (Jul 29 2020 at 03:42):

Thusal Ranawaka said:

Altogether 31 objects completed, 10 uncompleted.

nice

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 04:13):

@Sean Aligned the objects. primitives.tcl.txt

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:46):

@Sean Almost all the objects that you create using in command has been completed.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:46):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:46):

But last few objects are very hard.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:49):

Need help in bot.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:49):

Only 9 objects remain, I think.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:56):

@Sean Is this command correct? facetize nmg bot. It ran, with no errors. Just wanted to know, is these are the right steps.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 13:57):

image.png

view this post on Zulip Sean (Jul 29 2020 at 14:14):

Thusal Ranawaka said:

Altogether 31 objects completed, 10 uncompleted.

You're getting close! Once you get those remaining, we can start talking about organizing the layout. This will make a very useful regression test too.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:15):

Yes.

view this post on Zulip Sean (Jul 29 2020 at 14:15):

Did you figure out the bot?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:16):

Uh... I sent you a msg.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:16):

Thusal Ranawaka said:

image.png

Thusal Ranawaka said:

Sean Is this command correct? facetize nmg bot. It ran, with no errors. Just wanted to know, is these are the right steps.

This.

view this post on Zulip Sean (Jul 29 2020 at 14:17):

that's not enough information to answer the question

view this post on Zulip Sean (Jul 29 2020 at 14:17):

what is the usage for facetize?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:18):

Usage: facetize [ -nmhT | [--NMG] [--CM] [--SPSR] ] [old_obj1 | new_obj] [old_obj* ...] [old_objN | new_obj]
Options:
-h, --help Print help and exit
-v, --verbose Verbose output (multiple flags increase verbosity)
-q, --quiet Suppress all output (overrides verbose flag)
--NMG Use the standard libnmg boolean mesh evaluation
to create output (Default)
--CM Use the Continuation Method to sample the object
and create output
--SPSR Use raytraced points and SPSR to create output -
run -h --SPSR to see more options for this mode
-n, --NMG Create an N-Manifold Geometry (NMG) object
(default is to create a triangular BoT mesh)
--TNURB Create TNURB faces rather than planar
approximations (experimental)
-T, --triangles Generate a NMG solid using only triangles (BoTs,
the default output, can only use triangles - this
option mimics that behavior for NMG output.)
-r, --regions For combs, walk the trees and create new copies
of the hierarchies with each region replaced by a
facetized evaluation of that region. (Default is
to create one facetized object for all specified
inputs.)
--resume Resume an interrupted conversion (region mode
only)
--retry When resuming an interrupted conversion, re-try
operations that previously failed (default is to
not repeat previous attempts with
already-attempted methods.)
--in-place Alter the existing tree/object to reference the
facetized object. May only specify one input
object with this mode, and no output name.
(Warning: this option changes pre-existing
geometry!)
-F #, --feature-scale # Percentage of the average thickness observed by
the raytracer to use for a targeted feature size.
Defaults to 0.15, overridden by --feature-size
option
--feature-size # Explicit feature length to try for sampling based
methods - overrides feature-scale.
--decimation-feature-size # Initial feature length to try for decimation in
sampling based methods. By default, this value is
set to 1.5x the feature size.
--max-time # Maximum time to spend per processing step (in
seconds). Default is 30. Zero means either the
default (for routines which could run
indefinitely) or run to completion (if there is a
theoretical termination point for the algorithm)

                            - be careful of specifying zero because it is 
                            quite easy to produce extremely long runs!.

--max-pnts # Maximum number of pnts to use when applying ray
sampling methods.
-B EXPERIMENTAL: non-overlapping facetization to BoT
objects of union-only brep comb tree.
-t #, --threshold # EXPERIMENTAL: max ovlp threshold length.

view this post on Zulip Sean (Jul 29 2020 at 14:18):

bingo, yes

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:18):

Okay.

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:19):

But the command that I have sent you ran without errors and it created a bot.

view this post on Zulip Sean (Jul 29 2020 at 14:19):

yet you're still asking me if it's right.. :)

view this post on Zulip Sean (Jul 29 2020 at 14:19):

I'm asking you if it's right -- how can you know?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:21):

Sean said:

I'm asking you if it's right -- how can you know?

If it's run with no errors and if creates an output.

view this post on Zulip Sean (Jul 29 2020 at 14:21):

you look at the usage and see if you specified the right params -- you did. the usage seems to say that it could be "facetize old new" or "facetize new old" ... which would imply what you ran was correct in form

view this post on Zulip Sean (Jul 29 2020 at 14:22):

so the only thing you'd need to make sure is that old is valid and new didn't exist prior

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:22):

Sean said:

so the only thing you'd need to make sure is that old is valid and new didn't exist prior

Yes

view this post on Zulip Sean (Jul 29 2020 at 14:22):

not seeing an error displayed is not a good test

view this post on Zulip Sean (Jul 29 2020 at 14:22):

you want to inspect the output

view this post on Zulip Sean (Jul 29 2020 at 14:22):

you say it created a bot object

view this post on Zulip Sean (Jul 29 2020 at 14:23):

is that bot object correct?

view this post on Zulip Sean (Jul 29 2020 at 14:23):

does it have triangle(s) in it?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:23):

Will check it.

view this post on Zulip Sean (Jul 29 2020 at 14:23):

Do you know the command for inspecting objects?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:24):

Will check it.

view this post on Zulip Sean (Jul 29 2020 at 14:24):

how are you going to check it?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:24):

image.png

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:26):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:26):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:28):

Sean said:

how are you going to check it?

l bot

view this post on Zulip Sean (Jul 29 2020 at 14:28):

yes, the 'l' command lists an object's contents

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:28):

So,

view this post on Zulip Sean (Jul 29 2020 at 14:28):

great! so looks like you answered your question.

view this post on Zulip Sean (Jul 29 2020 at 14:29):

the other check you could do would be to make sure it renders with rt as expected

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:29):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:29):

(deleted)

view this post on Zulip Sean (Jul 29 2020 at 14:30):

6 vertices, 8 faces ... a face is a triangle for bots

view this post on Zulip Sean (Jul 29 2020 at 14:30):

so 8 triangles

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:30):

Sean said:

the other check you could do would be to make sure it renders with rt as expected

So, just run rt

view this post on Zulip Sean (Jul 29 2020 at 14:30):

B bot ; rt

view this post on Zulip Sean (Jul 29 2020 at 14:32):

ae 35 25 ; rt

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:32):

image.png

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:34):

So, it completes bot, 8 objects remains.

view this post on Zulip Sean (Jul 29 2020 at 14:35):

It's a rather boring bot

view this post on Zulip Sean (Jul 29 2020 at 14:35):

but it's a bot!

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:35):

Sean said:

It's a rather boring bot

:grinning:

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 14:57):

@Sean image.png

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 15:36):

What do you think?

view this post on Zulip Thusal Ranawaka (Jul 29 2020 at 15:39):

Thusal Ranawaka said:

Sean Daniel Rossberg Completed and Uncompleted objects of Primitives.tcl.txt (According to info that I have and from the wiki)
Arbitary,

Ellipsoids

Cones and Cylinders

Derived from 2D

(Uncompleted)

Other Solids

(Uncompleted)

Other

(Uncompleted)

@Sean Is there an object missing? Just to be sure.

view this post on Zulip Thusal Ranawaka (Jul 30 2020 at 03:36):

@Sean Altogether, there are 40 primitives in total? or even more or less?

view this post on Zulip Sean (Jul 30 2020 at 13:37):

Thusal Ranawaka said:

Sean Altogether, there are 40 primitives in total? or even more or less?

I believe we're up to 42 distinct object types.

view this post on Zulip Thusal Ranawaka (Jul 30 2020 at 13:38):

oh

view this post on Zulip Sean (Jul 30 2020 at 13:38):

you can find a listing of them in src/librt/primitives/table.cpp

view this post on Zulip Thusal Ranawaka (Jul 30 2020 at 13:38):

So, I think 33 objects completed, I believe.

view this post on Zulip Thusal Ranawaka (Jul 30 2020 at 13:41):

Saw it.

view this post on Zulip Thusal Ranawaka (Jul 30 2020 at 13:42):

A .cpp file

view this post on Zulip Thusal Ranawaka (Jul 30 2020 at 13:42):

There is a code for each object.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:18):

@Sean Trying to make 'vol'

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:20):

@Sean But can't figure out how to make it, because both make and in commands are unusable for this command.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:43):

@Sean I saw a list of 42 objects at the table.cpp, but they declared 'arb' as a collection (because arb contains arb4, arb5, arb6, arb7, arb8). So, it means it adds 3 more objects do the list. So, altogether there should be 45 objects in Primitives.tcl?

view this post on Zulip Sean (Jul 31 2020 at 14:45):

Thusal Ranawaka said:

Sean But can't figure out how to make it, because both make and in commands are unusable for this command.

Their creation is almost identical to EBM. Did you read the wiki page?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:46):

Sean said:

Thusal Ranawaka said:

Sean But can't figure out how to make it, because both make and in commands are unusable for this command.

Their creation is almost identical to EBM. Did you read the wiki page?

Yes. But I couldn't understand the documentation.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:46):

I will look on to it again.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:46):

Listing the objects.

view this post on Zulip Sean (Jul 31 2020 at 14:47):

Thusal Ranawaka said:

Sean I saw a list of 42 objects at the table.cpp, but they declared 'arb' as a collection (because arb contains arb4, arb5, arb6, arb7, arb8). So, it means it adds 3 more objects do the list. So, altogether there should be 45 objects in Primitives.tcl?

Internally, they are all identical, but yes -- if you were counting them as separate objects, then instead of 42 objects, that would imply 46 objects

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:48):

Sean said:

Thusal Ranawaka said:

Sean I saw a list of 42 objects at the table.cpp, but they declared 'arb' as a collection (because arb contains arb4, arb5, arb6, arb7, arb8). So, it means it adds 3 more objects do the list. So, altogether there should be 45 objects in Primitives.tcl?

Internally, they are all identical, but yes -- if you were counting them as separate objects, then instead of 42 objects, that would imply 46 objects

:grinning_face_with_smiling_eyes:

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:52):

I need to download the .tar.gz file to work on VOL.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:53):

@Sean But, where do I type that commands?

view this post on Zulip Sean (Jul 31 2020 at 14:54):

I don't know what tar.gz you are referring to, but it is definitely not required in a general sense

view this post on Zulip Sean (Jul 31 2020 at 14:54):

what is required is a volumetric data set

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:54):

http://graphics.stanford.edu/data/voldata/CThead.tar.gz

view this post on Zulip Sean (Jul 31 2020 at 14:54):

this can be created by hand, it can be created with images, it can be terrain data downloaded from the web, it can be ...

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:55):

Images?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:55):

So, we can use .png?

view this post on Zulip Sean (Jul 31 2020 at 14:55):

certainly

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:56):

tar -zxvf thusal.png -C scanslices

view this post on Zulip Sean (Jul 31 2020 at 14:56):

did you actually read the wiki page to UNDERSTAND it, or are you just trying to reproduce the same steps

view this post on Zulip Sean (Jul 31 2020 at 14:56):

if you create the exact same VOL as the wiki page, that is not as helpful as creating something different

view this post on Zulip Sean (Jul 31 2020 at 14:56):

that goes for all objects

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:56):

oh

view this post on Zulip Sean (Jul 31 2020 at 14:56):

Thusal Ranawaka said:

tar -zxvf thusal.png -C scanslices

This makes absolutely no sense.

view this post on Zulip Sean (Jul 31 2020 at 14:57):

a png file is not an input to the tar commnad

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:57):

So, png?

view this post on Zulip Sean (Jul 31 2020 at 14:57):

I don't think you're considering what each of those commands are doing, or what the wiki page explained

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:57):

png -zxvf thusal.png -C scanslices

view this post on Zulip Sean (Jul 31 2020 at 14:57):

o.O

view this post on Zulip Sean (Jul 31 2020 at 14:58):

dude, you're just guessing randomly now...

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:58):

:expressionless:

view this post on Zulip Sean (Jul 31 2020 at 14:58):

you need to understand what the commands are doing

view this post on Zulip Sean (Jul 31 2020 at 14:58):

read their manual pages if you need to

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:58):

Sean said:

you need to understand what the commands are doing

Give me a minute.

view this post on Zulip Sean (Jul 31 2020 at 14:59):

start with understanding "what is a VOL"?

view this post on Zulip Sean (Jul 31 2020 at 14:59):

then think about how one might represent data for that kind of object

view this post on Zulip Sean (Jul 31 2020 at 14:59):

then the steps you are seeing might make more sense to you

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 14:59):

Going through the wiki.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:00):

Found the usage of 'in' command

view this post on Zulip Sean (Jul 31 2020 at 15:02):

You learned about the 'in' command several days ago... it has an interactive mode that literally explains each input one at a time for ALL object

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:02):

Yes.

view this post on Zulip Sean (Jul 31 2020 at 15:03):

so you shouldn't even need to see the example at the bottom of the VOL wiki page ... because you can just type 'in' and see it yourself

view this post on Zulip Sean (Jul 31 2020 at 15:04):

that's the case for all of the object types that you still need to make

view this post on Zulip Sean (Jul 31 2020 at 15:05):

so ... what is a VOL?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:05):

Voxel?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:08):

Looking on to the prompts

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:09):

Asks for file contains voxel data.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:09):

So, .bw or .dsp file works?

view this post on Zulip Sean (Jul 31 2020 at 15:10):

forget about the 'in' command if you don't yet understand what a VOL is....

view this post on Zulip Sean (Jul 31 2020 at 15:10):

what is a voxel?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:11):

Three-dimensional grid of cells

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:11):

The definition of voxel looks similar to that of a point but in 3d

view this post on Zulip Sean (Jul 31 2020 at 15:11):

Thusal Ranawaka said:

Three-dimensional grid of cells

yes, good!

view this post on Zulip Sean (Jul 31 2020 at 15:11):

do you understand what a 3d grid of cells looks like?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:12):

Think so.

view this post on Zulip Sean (Jul 31 2020 at 15:12):

ever played minecraft?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:12):

Bingo

view this post on Zulip Sean (Jul 31 2020 at 15:12):

a minecraft world is a 3d grid of cells

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:13):

Sean said:

ever played minecraft?

No, I have seen it.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:13):

image.png

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:13):

Like this?

view this post on Zulip Sean (Jul 31 2020 at 15:13):

heh

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:14):

Yea minecraft is a perfect example for 3d grid of cells/blocks

view this post on Zulip Sean (Jul 31 2020 at 15:14):

well that's certainly something obviously derived from your ebm data file

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:14):

Where each block is a voxel

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:15):

3d grid cell = voxel

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:16):

Sean said:

well that's certainly something obviously derived from your ebm data file

Yes.

view this post on Zulip Sean (Jul 31 2020 at 15:16):

an ebm also contains voxel data, but for just one "layer" ... one elevation ... one slice. i.e., it's a single layer of 2d data that is presented as voxels

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:16):

So, it's need to be 3D

view this post on Zulip Sean (Jul 31 2020 at 15:16):

a vol is that same concept, but generalized to more than one slic

view this post on Zulip Sean (Jul 31 2020 at 15:16):

you can have any number of "layers" in your data

view this post on Zulip Sean (Jul 31 2020 at 15:16):

you can have 1 layer, in which case it's basically the same as ebm

view this post on Zulip Sean (Jul 31 2020 at 15:17):

or you could have thousands of layers like a minecraft world

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:17):

Yeah.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:19):

So, the EBM data represents only 2 layers and what should I do to get more than 2 layers, more voxel data?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:19):

Thusal Ranawaka said:

image.png

In this case, I got some warnings as well.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:20):

image.png

view this post on Zulip Sean (Jul 31 2020 at 15:21):

Thusal Ranawaka said:

So, the EBM data represents only 2 layers and what should I do to get more than 2 layers, more voxel data?

No, EBM is only ONE layer ... it's 2-dimensional data (width x height)

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:21):

@Sean
EBM = one layer
So VOL = stacked EBMs?

view this post on Zulip Sean (Jul 31 2020 at 15:22):

yeah, VOL = stacked EBMs

view this post on Zulip Sean (Jul 31 2020 at 15:22):

@Thusal Ranawaka check out this picture: Voxel-doing-Layer1.jpg

view this post on Zulip Sean (Jul 31 2020 at 15:23):

in that picture, you see four images

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:23):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:23):

So, a stack of images created a VOL

view this post on Zulip Sean (Jul 31 2020 at 15:23):

you hopefully see that you could take each one of those four pictures and make 4 EBMs

view this post on Zulip Sean (Jul 31 2020 at 15:23):

yes?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:24):

Okay.

view this post on Zulip Sean (Jul 31 2020 at 15:24):

those four images could be four separate png files or four jpg files or four gif files for example

view this post on Zulip Sean (Jul 31 2020 at 15:25):

and you already learned how you can turn a png into a bw and make an ebm, yes?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:25):

And you have to change the threshold value in each image.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:25):

Sean said:

and you already learned how you can turn a png into a bw and make an ebm, yes?

Yes.

view this post on Zulip Sean (Jul 31 2020 at 15:26):

great ... so now say you did that four times, you have 4 bwfiles

view this post on Zulip Sean (Jul 31 2020 at 15:26):

that's essentially VOL data

view this post on Zulip Sean (Jul 31 2020 at 15:27):

if you combined those 4 images into 1 file, you have a voxel data file

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:27):

Okay.

view this post on Zulip Sean (Jul 31 2020 at 15:27):

a voxel data file with 4 layers

view this post on Zulip Sean (Jul 31 2020 at 15:27):

are you just saying okay or do you understand? :)

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:28):

Divide you profile photo into parts according to their position and then make each part an EBM

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:28):

Then make that a vol

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:29):

Make the left arm one part, body another part and the other arm one part

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:29):

Alright

view this post on Zulip Sean (Jul 31 2020 at 15:30):

i'm not sure that's a good example to work with, there is only one layer of data in a single photo

view this post on Zulip Sean (Jul 31 2020 at 15:30):

if you chop it up into sections, they're going to get stacked one on top of the other, and that won't make much sense

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:31):

That's actually true

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:31):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:31):

So, I will try the image that you sent. (Sean)

view this post on Zulip Sean (Jul 31 2020 at 15:31):

that's why you need to create or import multiple slices of data (multiple images)

view this post on Zulip Sean (Jul 31 2020 at 15:32):

@Thusal Ranawaka I suggest you create your own images

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:32):

That might be a great idea.

view this post on Zulip Sean (Jul 31 2020 at 15:32):

you could make four images that are 16 x 16 pixels in size ... paint something different into each one

view this post on Zulip Sean (Jul 31 2020 at 15:35):

but not just different, make them layers of something you know

view this post on Zulip Sean (Jul 31 2020 at 15:35):

what's something simple you'd like to make in 3D?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:37):

Uh... Tea Cup

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:39):

Tea cup is a complex one to make using vol at least

view this post on Zulip Sean (Jul 31 2020 at 15:39):

excellent, cause that's a good example I just found. try to make this:

view this post on Zulip Sean (Jul 31 2020 at 15:39):

246x0w.png

view this post on Zulip Sean (Jul 31 2020 at 15:39):

how many layers do you see?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:39):

4

view this post on Zulip Sean (Jul 31 2020 at 15:39):

no

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:40):

5

view this post on Zulip Sean (Jul 31 2020 at 15:40):

yes, there are 5

view this post on Zulip Sean (Jul 31 2020 at 15:40):

and what are the dimensions of the top layer?

view this post on Zulip Sean (Jul 31 2020 at 15:41):

that is, if you wanted to make an ebm of the top layer, how big would that image need to be in pixels?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:42):

246x0?

view this post on Zulip Sean (Jul 31 2020 at 15:43):

o.O

view this post on Zulip Sean (Jul 31 2020 at 15:43):

no

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:43):

:face_palm: don't look at the file name

view this post on Zulip Sean (Jul 31 2020 at 15:43):

that wouldn't b an image

view this post on Zulip Sean (Jul 31 2020 at 15:44):

look at the picture -- why did you say 5 layers?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:45):

4 sides and the layer of handle

view this post on Zulip Sean (Jul 31 2020 at 15:45):

ahh, so no that's not right

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:45):

They are not layers but different sections of the cup in that image

view this post on Zulip Sean (Jul 31 2020 at 15:46):

see the gray blocks on the bottom

view this post on Zulip Sean (Jul 31 2020 at 15:46):

that's one layer

view this post on Zulip Sumagna Das (Jul 31 2020 at 15:46):

Think according to minecraft

view this post on Zulip Sean (Jul 31 2020 at 15:46):

then there are three green layers

view this post on Zulip Sean (Jul 31 2020 at 15:46):

what's the top layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:47):

Sumagna Das said:

Think according to minecraft

I haven't played Minecraft.

view this post on Zulip Sean (Jul 31 2020 at 15:47):

so just focus on what you see in that picture

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:47):

There is a blue top layer?

view this post on Zulip Sean (Jul 31 2020 at 15:48):

excellent

view this post on Zulip Sean (Jul 31 2020 at 15:48):

yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:48):

on an online class

view this post on Zulip Sean (Jul 31 2020 at 15:48):

so imagine that blue top layer in an image by itself

view this post on Zulip Sean (Jul 31 2020 at 15:48):

imagine all the layers in separate images

view this post on Zulip Sean (Jul 31 2020 at 15:48):

how many images would you have?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:49):

:thinking:

view this post on Zulip Sean (Jul 31 2020 at 15:49):

Thusal Ranawaka said:

on an online class

this is more interesting than your class ;)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:50):

Sean said:

Thusal Ranawaka said:

on an online class

this is more interesting than your class ;)

That's why I am chatting with you.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:50):

Sean said:

how many images would you have?

5 images?

view this post on Zulip Sean (Jul 31 2020 at 15:52):

correct!

view this post on Zulip Sean (Jul 31 2020 at 15:52):

how many blocks do you see on the top layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:52):

5 layers = 5 images

view this post on Zulip Sean (Jul 31 2020 at 15:52):

correct

view this post on Zulip Sean (Jul 31 2020 at 15:53):

so how many blue blocks do you see

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:53):

12 blocks

view this post on Zulip Sean (Jul 31 2020 at 15:53):

good

view this post on Zulip Sean (Jul 31 2020 at 15:53):

so now think of those blocks being pixels in an image

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:53):

5x5x5?

view this post on Zulip Sean (Jul 31 2020 at 15:54):

how many blocks wide is that top layer of blocks

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:55):

3blocks a side?

view this post on Zulip Sean (Jul 31 2020 at 15:55):

no, you must consider the entire width

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:55):

12 BLOCKS

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:55):

But how do I know the width?

view this post on Zulip Sean (Jul 31 2020 at 15:56):

no, that's the total number of blocks, not how wide they are arranged

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:58):

Don't know.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:58):

0?

view this post on Zulip Sean (Jul 31 2020 at 15:58):

have you used a pixel editor before?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:59):

I know pixels.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 15:59):

Not an editor.

view this post on Zulip Sean (Jul 31 2020 at 15:59):

go to https://www.piskelapp.com and draw the top layer

view this post on Zulip Sean (Jul 31 2020 at 16:00):

(just click on Create Sprite)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:03):

image.png

view this post on Zulip Sean (Jul 31 2020 at 16:04):

EXCELLENT! well done!

view this post on Zulip Sean (Jul 31 2020 at 16:04):

so now look at what you drew ... how wide is it?

view this post on Zulip Sean (Jul 31 2020 at 16:05):

how many pixels wide

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:07):

32x32

view this post on Zulip Sean (Jul 31 2020 at 16:07):

that is the width of the canvas you were drawing onto, but you didn't draw something 32 pixels wide

view this post on Zulip Sean (Jul 31 2020 at 16:08):

how big is the thing YOU drew

view this post on Zulip Sean (Jul 31 2020 at 16:08):

how wide

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:08):

5 blocks

view this post on Zulip Sean (Jul 31 2020 at 16:08):

YES

view this post on Zulip Sean (Jul 31 2020 at 16:09):

it's 5 blocks wide

view this post on Zulip Sean (Jul 31 2020 at 16:09):

aka 5 pixels wide in a 2d image ...

view this post on Zulip Sean (Jul 31 2020 at 16:09):

aka 5 voxels with in 3d

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:09):

I couldn't understand what did you mean by 'How wide...' whole time. :face_palm:

view this post on Zulip Sean (Jul 31 2020 at 16:09):

so now see if you can add to what you have there, and draw the second layer

view this post on Zulip Sean (Jul 31 2020 at 16:10):

Thusal Ranawaka said:

I couldn't understand what did you mean by 'How wide...' whole time. :face_palm:

Since you understand now, is there a better way to ask the question?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:10):

Not at all. :happy:

view this post on Zulip Sean (Jul 31 2020 at 16:11):

This is actually really outstanding material for making a simple tutorial... I love this little cup.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:11):

The problem is with my English.

view this post on Zulip Sean (Jul 31 2020 at 16:11):

no worries, you're making progress

view this post on Zulip Sean (Jul 31 2020 at 16:11):

see if you can draw the next layer

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:14):

okay

view this post on Zulip Sean (Jul 31 2020 at 16:21):

success?

view this post on Zulip Sean (Jul 31 2020 at 16:22):

confusion?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:22):

Sorry, I was eating while chatting with you.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:23):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:24):

image.png

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

Correct?

view this post on Zulip Sean (Jul 31 2020 at 16:26):

close, but not correct

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:26):

What's the problem?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:26):

Sorry

view this post on Zulip Sean (Jul 31 2020 at 16:26):

the problem is that's not the same as the second layer

view this post on Zulip Sean (Jul 31 2020 at 16:27):

how many voxels did you say you counted on the first/top layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:27):

5 voxels

view this post on Zulip Sean (Jul 31 2020 at 16:28):

no, not how wide

view this post on Zulip Sean (Jul 31 2020 at 16:28):

how many

view this post on Zulip Sean (Jul 31 2020 at 16:28):

how many total

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:28):

12 voxels

view this post on Zulip Sean (Jul 31 2020 at 16:28):

right

view this post on Zulip Sean (Jul 31 2020 at 16:28):

how many voxels do you count on the second layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:28):

14 voxels?

view this post on Zulip Sean (Jul 31 2020 at 16:28):

good! yes!

view this post on Zulip Sean (Jul 31 2020 at 16:28):

now count how many pixels you drew

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:28):

Because of the handle

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:29):

Sean said:

now count how many pixels you drew

Yeah, one voxel missing in the handle.

view this post on Zulip Sean (Jul 31 2020 at 16:29):

bingo

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:29):

That's a mistake

view this post on Zulip Sean (Jul 31 2020 at 16:29):

yep

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:30):

So, now the 3rd layer?

view this post on Zulip Sean (Jul 31 2020 at 16:30):

that was the only mistake

view this post on Zulip Sean (Jul 31 2020 at 16:30):

no

view this post on Zulip Sean (Jul 31 2020 at 16:30):

you're still learning

view this post on Zulip Sean (Jul 31 2020 at 16:30):

so now tell me how wide is what you drew?

view this post on Zulip Sean (Jul 31 2020 at 16:31):

how many pixels wide?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:32):

7 pixels?

view this post on Zulip Sean (Jul 31 2020 at 16:34):

wide is left and right, tall is up and down

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:35):

5 pixels?

view this post on Zulip Sean (Jul 31 2020 at 16:35):

yes, same as the first layer

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:35):

okay

view this post on Zulip Sean (Jul 31 2020 at 16:35):

how many pixels tall

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:36):

Only the 2nd layer?

view this post on Zulip Sean (Jul 31 2020 at 16:36):

yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:36):

(deleted)

view this post on Zulip Sean (Jul 31 2020 at 16:37):

you're confusing pixels with voxels

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:37):

1 pixel = 1 voxel

view this post on Zulip Sean (Jul 31 2020 at 16:37):

in the image you just drew for the second layer, how wide is it in pixels and how tall is it in pixels

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:38):

5px wide 1px tall

view this post on Zulip Sean (Jul 31 2020 at 16:38):

the word "tall" is confusing you

view this post on Zulip Sean (Jul 31 2020 at 16:38):

we're talking about a 2D context

view this post on Zulip Sean (Jul 31 2020 at 16:38):

what was the width and height of the first layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:39):

5px x 7px

view this post on Zulip Sean (Jul 31 2020 at 16:39):

those 12 pixels you drew .. how wide are they in X and how tall are they in Y? we are not talking at all about Z

view this post on Zulip Sean (Jul 31 2020 at 16:40):

Thusal Ranawaka said:

5px x 7px

which layer are you describing?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:40):

Sean said:

Thusal Ranawaka said:

5px x 7px

which layer are you describing?

2nd layer

view this post on Zulip Sean (Jul 31 2020 at 16:40):

okay, great

view this post on Zulip Sean (Jul 31 2020 at 16:40):

so the width is 5 and the height is 7

view this post on Zulip Sean (Jul 31 2020 at 16:40):

(in 2D)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:40):

Yes

view this post on Zulip Sean (Jul 31 2020 at 16:40):

X=5, Y=7 .. width=5, height=7

view this post on Zulip Sean (Jul 31 2020 at 16:41):

those are the dimensions of the second layer

view this post on Zulip Sean (Jul 31 2020 at 16:41):

what are the dimensions of the first layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:41):

5 x 5

view this post on Zulip Sean (Jul 31 2020 at 16:41):

great

view this post on Zulip Sean (Jul 31 2020 at 16:41):

so now lets bring this home

view this post on Zulip Sean (Jul 31 2020 at 16:42):

are there any layers in that cup bigger than width=5 or height=7 ?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:43):

Nope

view this post on Zulip Sean (Jul 31 2020 at 16:43):

excellent

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:43):

:grinning_face_with_smiling_eyes:

view this post on Zulip Sean (Jul 31 2020 at 16:43):

so that's VERY IMPORTANT ...

view this post on Zulip Sean (Jul 31 2020 at 16:44):

the maximal dimensions of all layers is 5x7

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:44):

yes.

view this post on Zulip Sean (Jul 31 2020 at 16:44):

when you make volumetric data, ALL layers must be the same size

view this post on Zulip Sean (Jul 31 2020 at 16:44):

all layers must have the same dimensions as your biggest layer

view this post on Zulip Sean (Jul 31 2020 at 16:44):

so what layer size is your VOL going to have?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:44):

Okay.

view this post on Zulip Sean (Jul 31 2020 at 16:45):

what layer dimensions do you need to use?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:45):

5 x 7

view this post on Zulip Sean (Jul 31 2020 at 16:45):

WOOT! he's getting it!

view this post on Zulip Sean (Jul 31 2020 at 16:45):

yes

view this post on Zulip Sean (Jul 31 2020 at 16:45):

so now lets set that up in the pixel editor

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:46):

:big_smile:

view this post on Zulip Sean (Jul 31 2020 at 16:46):

click the Resize tab on the right size

view this post on Zulip Sean (Jul 31 2020 at 16:46):

find where it says "Maintain aspect ratio" and uncheck that box

view this post on Zulip Sean (Jul 31 2020 at 16:47):

then set width and height to your layer dimensions

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:47):

Did it.

view this post on Zulip Sean (Jul 31 2020 at 16:47):

screenshot?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:48):

image.png

view this post on Zulip Sean (Jul 31 2020 at 16:48):

excellent

view this post on Zulip Sean (Jul 31 2020 at 16:48):

so now, erase that one pixel

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

oh, It's the cursor. :grinning:

view this post on Zulip Sean (Jul 31 2020 at 16:50):

oh okay, next set your color to black

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:50):

done

view this post on Zulip Sean (Jul 31 2020 at 16:50):

actully, sorry, lets use black and white

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:50):

white for background?

view this post on Zulip Sean (Jul 31 2020 at 16:50):

fill all pixels with black, and then draw the first layer in white

view this post on Zulip Sean (Jul 31 2020 at 16:51):

white foreground, black background

view this post on Zulip Sean (Jul 31 2020 at 16:51):

color all pixels

view this post on Zulip Sean (Jul 31 2020 at 16:51):

then simply draw the first layer (white on black), click the Export button on the right when you're done, and save it as a PNG

view this post on Zulip Sean (Jul 31 2020 at 16:52):

post the png here when it's done

view this post on Zulip Sean (Jul 31 2020 at 16:53):

then repeat the process for layers 2, 3, 4, and 5!

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:54):

Layer1.png

view this post on Zulip Sean (Jul 31 2020 at 16:55):

that looks perfect

view this post on Zulip Sean (Jul 31 2020 at 16:55):

four more to go

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:56):

Layer2.png

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:57):

Layer3.png

view this post on Zulip Sean (Jul 31 2020 at 16:57):

good!

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:57):

Layer4.png

view this post on Zulip Sean (Jul 31 2020 at 16:58):

notice how layers 2 and 4 are identical. you could have just made a copy of the file.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:58):

Layer5.png

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:58):

Sean said:

notice how layers 2 and 4 are identical. you could have just made a copy of the file.

Yes.

view this post on Zulip Sean (Jul 31 2020 at 16:58):

you sure?

view this post on Zulip Sean (Jul 31 2020 at 16:58):

you sure about layer 5?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:59):

Sean said:

you sure?

Yes.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 16:59):

The bottom layer must be filled.

view this post on Zulip Sean (Jul 31 2020 at 16:59):

that is true

view this post on Zulip Sean (Jul 31 2020 at 16:59):

that's not the mistake

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:00):

Sean said:

that's not the mistake

Sorry

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:00):

Saw it.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:00):

Layer5-2.png

view this post on Zulip Sean (Jul 31 2020 at 17:02):

now you have your 5 voxel layers in separate images

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:02):

Yes

view this post on Zulip Sean (Jul 31 2020 at 17:02):

If we had implemented png support for VOL, that would be sufficient

view this post on Zulip Sean (Jul 31 2020 at 17:02):

but just like EBM, you now need to convert that image data into a format that VOL wants

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:03):

.bw

view this post on Zulip Sean (Jul 31 2020 at 17:03):

yes, very good

view this post on Zulip Sean (Jul 31 2020 at 17:04):

I think you're starting to understand

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:04):

I think so.

view this post on Zulip Sean (Jul 31 2020 at 17:04):

so convert each png into a 5x7 .bw file (remember the default is 512x512 which is NOT what you want)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:05):

Yes

view this post on Zulip Sean (Jul 31 2020 at 17:09):

once you have your 5 bw files, you need to combine them into a single file. since bw files are simple raw binary files, you can combine them with: copy /b layer1.bw + layer2.bw + layer3.bw + layer4.bw + layer5.bw all_layers.bw

view this post on Zulip Sean (Jul 31 2020 at 17:09):

and finally with that all_layrs.bw file, you can create your VOL with with 'in' command interactively

view this post on Zulip Sean (Jul 31 2020 at 17:14):

since you drew your voxels using black and white colors, those colors intensity on a scale of 0 to 255 are white=255 and black=0. so when it asks you for the threshold, you just want the minimum to be greater than the background color intensity, and you want the maximum to be equal to or greater than your foreground color's intensity.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:19):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:19):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:19):

You said that you have to set the size

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:20):

512x512 default

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:20):

But I tried to set the sizes using -w and -n but shows errors

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:22):

image.png

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:22):

Did them.

view this post on Zulip Sean (Jul 31 2020 at 17:22):

Thusal Ranawaka said:

But I tried to set the sizes using -w and -n but shows errors

I don't see any errors

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:23):

Thusal Ranawaka said:

image.png

Is this correct?

view this post on Zulip Sean (Jul 31 2020 at 17:24):

what do you think is an error?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:24):

No, I wanted to know, did I converted them correctly? Forget about the error that I said before.

view this post on Zulip Sean (Jul 31 2020 at 17:25):

no, you're not thinking for yourself

view this post on Zulip Sean (Jul 31 2020 at 17:25):

what do you think is an error?

view this post on Zulip Sean (Jul 31 2020 at 17:25):

what DID you think was an error

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:26):

What do you mean?

view this post on Zulip Sean (Jul 31 2020 at 17:26):

you said you tried setting the sizes but you got errors. what errors did you think you got?

view this post on Zulip Sean (Jul 31 2020 at 17:27):

the screenshot you provided does not show you trying to set the sizes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:27):

This, image.png

view this post on Zulip Sean (Jul 31 2020 at 17:27):

Ahah! much better

view this post on Zulip Sean (Jul 31 2020 at 17:28):

so yes, then it displayed usage -- do you see -n or -w options in the usage?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:28):

No.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:28):

I saw my mistake.

view this post on Zulip Sean (Jul 31 2020 at 17:29):

Well my question is, why do you think there are no -n or -w options?

view this post on Zulip Sean (Jul 31 2020 at 17:29):

Many tools have them, why doesn't png-bw have them?

view this post on Zulip Sean (Jul 31 2020 at 17:29):

hint: bw-png has them, but not png-bw

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:30):

Because png has its dimensions

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:30):

More file data

view this post on Zulip Sean (Jul 31 2020 at 17:31):

png has its dimensions, YES! excellent, you remembered

view this post on Zulip Sean (Jul 31 2020 at 17:31):

bw is just data, so it does not have any dimensions

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:31):

Yep

view this post on Zulip Sean (Jul 31 2020 at 17:31):

or rather, it doesn't know what they are

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:31):

You told me.

view this post on Zulip Sean (Jul 31 2020 at 17:31):

glad you remembered, it's important to be very aware of what data you are working with

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:32):

:grinning_face_with_smiling_eyes:

view this post on Zulip Sean (Jul 31 2020 at 17:32):

because the last bit is to understand the data format that VOL wants -- it wants raw unsigned char data, which is exactly what .bw data is too

view this post on Zulip Sean (Jul 31 2020 at 17:32):

8-bit unsigned character data

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:32):

Okay, I am on 'in' command now.

view this post on Zulip Sean (Jul 31 2020 at 17:32):

so continue and see

view this post on Zulip Sean (Jul 31 2020 at 17:32):

you combined them?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:33):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:33):

in vol vol all_layers.bw 5 7 0 1 255 1 1 0

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:33):

I think it's wrong.

view this post on Zulip Sean (Jul 31 2020 at 17:33):

that doesn't look right at a quick glance

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:33):

Shows some errors

view this post on Zulip Sean (Jul 31 2020 at 17:33):

did you do it interactively?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:33):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:34):

Sean said:

did you do it interactively?

Interactive??

view this post on Zulip Sean (Jul 31 2020 at 17:34):

try again, but only enter one number at a time

view this post on Zulip Sean (Jul 31 2020 at 17:34):

dude, this is like the third time.... the in command can be run as one long line like that or it can be run interactively

view this post on Zulip Sean (Jul 31 2020 at 17:35):

interactively, it prompts you for each number with a description

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:35):

I ran interactively

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:35):

image.png

view this post on Zulip Sean (Jul 31 2020 at 17:37):

you didn't do what I said

view this post on Zulip Sean (Jul 31 2020 at 17:37):

"try again, but only enter one number at a time"

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:45):

Alright

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:46):

No luck

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:47):

I entered one number at a time.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:47):

But errors

view this post on Zulip Sean (Jul 31 2020 at 17:49):

heh

view this post on Zulip Sean (Jul 31 2020 at 17:49):

the point of entering one at a time isn't to get a different result

view this post on Zulip Sean (Jul 31 2020 at 17:50):

if you don't change the inputs, it's not going to change the result

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:50):

I changed it

view this post on Zulip Sean (Jul 31 2020 at 17:50):

it's the same as typing it all out as one line

view this post on Zulip Sean (Jul 31 2020 at 17:50):

the point is to think about each prompt, think what it's asking for

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:50):

I know

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:50):

Yes

view this post on Zulip Sean (Jul 31 2020 at 17:50):

okay, so then walk me through each prompt and explain your answer to me

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:50):

Alright

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:51):

Enter X, Y, Z dimensions of file (number of cells)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:51):

5 7 0?

view this post on Zulip Sean (Jul 31 2020 at 17:51):

explain

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:52):

It asks the dimensions of the bw file.

view this post on Zulip Sean (Jul 31 2020 at 17:52):

dimensions of the data in the bw file, yes

view this post on Zulip Sean (Jul 31 2020 at 17:52):

continue explaining...

view this post on Zulip Sean (Jul 31 2020 at 17:52):

explain those three numbers

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:53):

X means width

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:53):

Y means height (from the top view)

view this post on Zulip Sean (Jul 31 2020 at 17:54):

correct and correct

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:54):

and Z means height, but to make it 3D

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:54):

Vertical

view this post on Zulip Sean (Jul 31 2020 at 17:56):

explain your choice of values

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 17:56):

X=5 Y=7 and Z=0

view this post on Zulip Sean (Jul 31 2020 at 17:56):

that's not explaining, that's just saying them

view this post on Zulip Sean (Jul 31 2020 at 17:56):

why 5, why 7, why 0

view this post on Zulip Sean (Jul 31 2020 at 17:59):

the prompt is asking you how many values you have in that data file ... i.e., how many voxels there are and the shape of that voxel data set

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:02):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:02):

It asks dimensions of your bw file.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:03):

So, my values are corect?

view this post on Zulip Sean (Jul 31 2020 at 18:03):

DUDE

view this post on Zulip Sean (Jul 31 2020 at 18:03):

you've still not explained the valus

view this post on Zulip Sean (Jul 31 2020 at 18:03):

why 5?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:04):

Because 5 is the width of the bw file.

view this post on Zulip Sean (Jul 31 2020 at 18:04):

no

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:04):

Then?

view this post on Zulip Sean (Jul 31 2020 at 18:04):

think and try again

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:04):

3?

view this post on Zulip Sean (Jul 31 2020 at 18:05):

why 3?

view this post on Zulip Sean (Jul 31 2020 at 18:05):

i'm not asking you for different values

view this post on Zulip Sean (Jul 31 2020 at 18:05):

i'm asking why that value

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:06):

5 is for the X value, which is the width of the layer bw file.

view this post on Zulip Sean (Jul 31 2020 at 18:06):

CORRECT :)

view this post on Zulip Sean (Jul 31 2020 at 18:06):

that's what I'm getting at

view this post on Zulip Sean (Jul 31 2020 at 18:06):

these numbers aren't coming from nothing

view this post on Zulip Sean (Jul 31 2020 at 18:06):

they mean something

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:06):

That's what I am saying for the whole time. ;)

view this post on Zulip Sean (Jul 31 2020 at 18:07):

no it's not

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:07):

Whatever

view this post on Zulip Sean (Jul 31 2020 at 18:07):

you said it's the width of the bw file

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:07):

:smile:

view this post on Zulip Sean (Jul 31 2020 at 18:07):

which is a different statement

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:07):

Okay

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:07):

Then Y?

view this post on Zulip Sean (Jul 31 2020 at 18:08):

layer1.bw and all_layers.bw are two very different things

view this post on Zulip Sean (Jul 31 2020 at 18:08):

the .bw is probably confusing you

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:08):

Hmm

view this post on Zulip Sean (Jul 31 2020 at 18:08):

instead of all_layers.bw, think of it as being all_layers.data

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:08):

Okay

view this post on Zulip Sean (Jul 31 2020 at 18:08):

because you took a bunch of .bw files and COMBINED them...

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:08):

Yeah

view this post on Zulip Sean (Jul 31 2020 at 18:09):

so the result is a file with a lot of bw data in it, but you have to be careful in thinking of it in dimensional terms

view this post on Zulip Sean (Jul 31 2020 at 18:09):

because the dimensional terms refer to the DATA inside the file

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:09):

Yep

view this post on Zulip Sean (Jul 31 2020 at 18:09):

how much data was in layer1.bw ?

view this post on Zulip Sean (Jul 31 2020 at 18:09):

how many voxel cells did that describe?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:09):

(deleted)

view this post on Zulip Sean (Jul 31 2020 at 18:10):

wrong answer, I did not ask how big the file was -- though in fairness the first question does open up that ambiguity. I clarified in the second rephrasing

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:10):

Sean said:

how much data was in layer1.bw ?

Needs more explanation.

view this post on Zulip Sean (Jul 31 2020 at 18:11):

how many voxel positions are described in the layer1.bw file?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:12):

2, I think

view this post on Zulip Sean (Jul 31 2020 at 18:12):

no

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:12):

X and Y

view this post on Zulip Sean (Jul 31 2020 at 18:12):

that's dimensions, not positions

view this post on Zulip Sean (Jul 31 2020 at 18:12):

positions are all the places you could click in the image editor. it's the number of cells.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:12):

oh

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:13):

12 voxels

view this post on Zulip Sean (Jul 31 2020 at 18:13):

that's how many voxels you colored white

view this post on Zulip Sean (Jul 31 2020 at 18:13):

that's not how many voxels were described

view this post on Zulip Sean (Jul 31 2020 at 18:13):

you described many more with the color black

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:14):

So, 5x7 = 35 voxels?

view this post on Zulip Sean (Jul 31 2020 at 18:14):

yes

view this post on Zulip Sean (Jul 31 2020 at 18:14):

that's how many voxels are described in the layer1.bw file

view this post on Zulip Sean (Jul 31 2020 at 18:14):

12 of them are "on" and the rest are "off"

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:15):

Yes

view this post on Zulip Sean (Jul 31 2020 at 18:15):

i.e., 12 are solid and the rest are air/nothing

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:15):

Hmm

view this post on Zulip Sean (Jul 31 2020 at 18:15):

each is represented by an unsigned number

view this post on Zulip Sean (Jul 31 2020 at 18:15):

a value

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:15):

Okay

view this post on Zulip Sean (Jul 31 2020 at 18:16):

okay, so how many voxels are in all_layers.data ?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:17):

35x5 = 175?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:17):

175 voxels

view this post on Zulip Sean (Jul 31 2020 at 18:17):

excellent!

view this post on Zulip Sean (Jul 31 2020 at 18:17):

why 35x5?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:19):

Because there are 35 voxels in each layer (Some are on, Some are off), altogether there are 5 layers to complete the cup. So, 35 voxels in 1 layer and voxels in 5 layers equal to 175 voxels.

view this post on Zulip Sean (Jul 31 2020 at 18:20):

outstanding, that's is absolutely all correct

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:20):

:grinning_face_with_smiling_eyes:

view this post on Zulip Sean (Jul 31 2020 at 18:21):

so now back to the 'in' command prompt and what it's asking you. it's asking you how many data values are in the file. how many voxels.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:22):

Enter X, Y, Z dimensions of file (number of cells)?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:22):

Sean said:

so now back to the 'in' command prompt and what it's asking you. it's asking you how many data values are in the file. how many voxels.

Hmm

view this post on Zulip Sean (Jul 31 2020 at 18:22):

cells == voxels

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:22):

So, the answer should be 175?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:25):

It asks an XYZ value, so, I can't just define 175?

view this post on Zulip Sean (Jul 31 2020 at 18:27):

175 does not describe the shape of the volume

view this post on Zulip Sean (Jul 31 2020 at 18:27):

it merely describes the total number of cells

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:27):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:27):

It asks, Enter X, Y, Z dimensions of file (number of cells):

view this post on Zulip Sean (Jul 31 2020 at 18:28):

if I told you there were 200 voxels, can you tell me the dimensions of the first layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:29):

(deleted)

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:29):

Yes. You have to calculate

view this post on Zulip Sean (Jul 31 2020 at 18:30):

how??

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:30):

By dividing 200 by 5 and then...

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:30):

40

view this post on Zulip Sean (Jul 31 2020 at 18:30):

you misunderstand

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:30):

Yes

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:31):

We can't do it, know?

view this post on Zulip Sean (Jul 31 2020 at 18:31):

Thusal Ranawaka said:

It asks an XYZ value, so, I can't just define 175?

if all you input was 175 ... how will it know what the layer dimensions are?

view this post on Zulip Sean (Jul 31 2020 at 18:31):

I'm responding to this specific question

view this post on Zulip Sean (Jul 31 2020 at 18:32):

why can't you just input 175

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:32):

Because it's asking for the dimensions of all_layers.data

view this post on Zulip Sean (Jul 31 2020 at 18:32):

if you input 175, how is the software to know how many layers there are or how many voxels per layer?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:33):

Sean said:

if you input 175, how is the software to know how many layers there are or how many voxels per layer?

Don't know.

view this post on Zulip Sean (Jul 31 2020 at 18:33):

that's because it's impossible

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:33):

Hmm

view this post on Zulip Sean (Jul 31 2020 at 18:34):

think of this another way

view this post on Zulip Sean (Jul 31 2020 at 18:34):

say I have an image

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:34):

Okay

view this post on Zulip Sean (Jul 31 2020 at 18:34):

and I tell you it's got 1200 pixels in that image

view this post on Zulip Sean (Jul 31 2020 at 18:34):

what are the dimensions of the image?

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:34):

How could I know?

view this post on Zulip Sean (Jul 31 2020 at 18:34):

that's what I'm asking you

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:35):

It can get multiple answers

view this post on Zulip Sean (Jul 31 2020 at 18:35):

exactly

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:35):

So?

view this post on Zulip Sean (Jul 31 2020 at 18:35):

and that's the exact same reason why inputting 175 voxels would not be enough information

view this post on Zulip Sean (Jul 31 2020 at 18:35):

there are multiple answers possible

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:36):

Yes.

view this post on Zulip Sean (Jul 31 2020 at 18:36):

so back to what it's asking you

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:36):

Okay.

view this post on Zulip Sean (Jul 31 2020 at 18:36):

it's asking you how many voxels are in the data file ... and it wants three numbers

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:37):

I have to hurry because my parents are asleep.

view this post on Zulip Sean (Jul 31 2020 at 18:37):

X x Y x Z = 175

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:37):

oh

view this post on Zulip Sean (Jul 31 2020 at 18:38):

5 x 7 x 0 = 0

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:38):

5 x 7 x 5.

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:39):

BOOM! BABY

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:40):

image.png

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

Thusal Ranawaka said:

image.png

now thats what a cup in minecraft would look like :yum: but thats nice

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:41):

HA HA

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:41):

Got to go

view this post on Zulip Sean (Jul 31 2020 at 18:41):

run rt

view this post on Zulip Sean (Jul 31 2020 at 18:41):

that's just the wireframe

view this post on Zulip Sean (Jul 31 2020 at 18:41):

render it

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:42):

image.png

view this post on Zulip Sean (Jul 31 2020 at 18:42):

rotate it upside down

view this post on Zulip Sean (Jul 31 2020 at 18:42):

run rt again

view this post on Zulip Sumagna Das (Jul 31 2020 at 18:42):

what happened to the middle?

view this post on Zulip Sumagna Das (Jul 31 2020 at 18:43):

Sean said:

rotate it upside down

that might be the reason

view this post on Zulip Sean (Jul 31 2020 at 18:44):

he combined the layers as 1,2,3,4,5 top-to-bottom (4th quadrant), but vol is expecting the data in bottom-to-top order (1st quadrant)

view this post on Zulip Sean (Jul 31 2020 at 18:44):

so it's flipped upside down

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:44):

image.png

view this post on Zulip Sean (Jul 31 2020 at 18:45):

TA-DA!

view this post on Zulip Sean (Jul 31 2020 at 18:45):

beautiful

view this post on Zulip Sumagna Das (Jul 31 2020 at 18:45):

there's the cup

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:45):

:grinning_face_with_smiling_eyes:

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:45):

Thank you very much for your time @Sean

view this post on Zulip Thusal Ranawaka (Jul 31 2020 at 18:45):

Bye!

view this post on Zulip Sean (Jul 31 2020 at 18:45):

That's enough torture for one day. Well done @Thusal Ranawaka !

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 13:49):

@Sean primitives.tcl.txt :worried:

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 13:50):

I will complete rest of the objects and the tutorial as soon as possible.

view this post on Zulip Sean (Aug 24 2020 at 14:56):

awesome @Thusal Ranawaka !

view this post on Zulip Sean (Aug 24 2020 at 14:56):

why the sad face?

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 15:18):

Sean said:

why the sad face?

Because I failed to complete all the objects over 4 months, I think.

view this post on Zulip Sean (Aug 24 2020 at 16:19):

Time isn't relevant to me so long as progress keeps getting made. It only matters if you quit!

view this post on Zulip Sean (Aug 24 2020 at 16:19):

This is in sound enough state that you could add it to our regression suite as a new test if you're interested in submitting your first code formally.

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 16:19):

:+1:

view this post on Zulip Sean (Aug 24 2020 at 16:20):

Just entails downloading from SVN if you hadn't yet, compiling, and then a few edits in the regress/ directory to add your script as a new test.

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 16:21):

Alright.

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 16:21):

I will complete the rest asap

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 16:22):

Happy to see something that I did in the BRL-CAD repo at last.

view this post on Zulip Thusal Ranawaka (Aug 24 2020 at 16:22):

:grinning_face_with_smiling_eyes::grinning_face_with_smiling_eyes:

view this post on Zulip Thusal Ranawaka (Sep 18 2020 at 14:09):

@Sean Trying to make Revolve primitive.

view this post on Zulip Sean (Sep 18 2020 at 17:23):

excellent

view this post on Zulip Sean (Sep 18 2020 at 17:23):

find the wiki page?

view this post on Zulip Thusal Ranawaka (Sep 19 2020 at 01:26):

@Sean Yes. Couldn't understand a word it says and the documentation is incomplete, I think. :)

view this post on Zulip Sean (Sep 19 2020 at 12:11):

oh, sorry -- I didn't realize that it's currently a development implementation page

view this post on Zulip Sean (Sep 19 2020 at 12:11):

Revolve is nearly identical to extrude: https://brlcad.org/wiki/Extrude

view this post on Zulip Sean (Sep 19 2020 at 12:16):

create a Sketch, and for revolve it can be even more simple like a line, an arc, and a line:

____
    \
     |
____/

Then you revolve that and it'll make geometry.

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:13):

@Sean I couldn't believe myself, I already created it before. :face_palm:

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:14):

image.png

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:18):

@Sean What happened to hf?

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:18):

image.png

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:18):

image.png

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:20):

And poly?

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 13:20):

image.png

view this post on Zulip Sumagna Das (Sep 20 2020 at 14:21):

The stated primitives might have more features than the deprecated ones

view this post on Zulip Sean (Sep 20 2020 at 16:46):

Hf was replaced with dsp, poly was replaced by BoT

view this post on Zulip Thusal Ranawaka (Sep 20 2020 at 16:48):

So two primitives will deducted from 42 primitives.

view this post on Zulip Sean (Sep 22 2020 at 04:02):

I suppose. I mean it would be good to include them in a testing set just so we can make sure they're not horribly broken, but not critically important.

view this post on Zulip Thusal Ranawaka (Sep 22 2020 at 09:21):

@Sean How do I do that?

view this post on Zulip Sean (Sep 22 2020 at 13:52):

@Thusal Ranawaka I wouldn't worry about them. Best to just focus on the ones remaining that can be created (or the tutorial.... any updates?)

view this post on Zulip Thusal Ranawaka (Sep 22 2020 at 13:52):

Um... Making some updates in the Primitives.tcl

view this post on Zulip Thusal Ranawaka (Sep 24 2020 at 13:50):

@Sean Going to make Sub Model

view this post on Zulip Sean (Sep 24 2020 at 17:02):

great. bugs seem to creep into submodel because we don't test it at all, so please do report any issues or funny behavior

view this post on Zulip Thusal Ranawaka (Oct 04 2020 at 13:25):

@Sean All the primitives are done. Except brep, poly, hf, and spline :tada:

view this post on Zulip Thusal Ranawaka (Oct 04 2020 at 13:25):

Have a look, primitives.tcl.txt

view this post on Zulip Thusal Ranawaka (Oct 15 2020 at 14:45):

@Sean Any comments on primitives.tcl? :thinking:

view this post on Zulip Sean (Oct 20 2020 at 03:22):

@Thusal Ranawaka past 7 days have been nuts, but yes! Did you actually make that grip functional? impressed you figured it out even if it's not... rigging in brl-cad is not exactly extensively documented!

view this post on Zulip Thusal Ranawaka (Oct 20 2020 at 04:05):

I think so.

view this post on Zulip Sean (Oct 21 2020 at 16:46):

really? how do you know it's functional? :)

view this post on Zulip Thusal Ranawaka (Oct 22 2020 at 12:28):

@Sean I input values to grip and it worked.

view this post on Zulip Thusal Ranawaka (Oct 22 2020 at 12:28):

It worked fine.

view this post on Zulip Thusal Ranawaka (Oct 22 2020 at 12:34):

As you said earlier, May I add rendering effects to primitives?

view this post on Zulip Thusal Ranawaka (Oct 22 2020 at 12:34):

I almost forgot it. :sweat_smile:

view this post on Zulip Sean (Oct 23 2020 at 06:52):

well that just means it created the grip object. that doesn't mean the grip works. :)

a grip is for articulating geometry. you know, like grabbing a rigging structure on a skeleton to move hands/feet/arms/doors/hinges/etc

view this post on Zulip Sean (Oct 23 2020 at 06:53):

Thusal Ranawaka said:

As you said earlier, May I add rendering effects to primitives?

rendering effects will be great, but first what's the status of the entities. which ones were you unable to create?

view this post on Zulip Sean (Oct 23 2020 at 06:53):

once they're all created, the next step will be to create a layout that displays them all in some sensible manner.

view this post on Zulip Sean (Oct 23 2020 at 06:54):

then rendering effects

view this post on Zulip Thusal Ranawaka (Oct 31 2020 at 14:10):

Sean said:

well that just means it created the grip object. that doesn't mean the grip works. :)

a grip is for articulating geometry. you know, like grabbing a rigging structure on a skeleton to move hands/feet/arms/doors/hinges/etc

@Sean So, how do I check that?

view this post on Zulip Thusal Ranawaka (Dec 11 2020 at 14:17):

I need help with grip, I can't understand what you said exactly.

view this post on Zulip Thusal Ranawaka (Mar 14 2021 at 14:28):

Back to work again!

view this post on Zulip Thusal Ranawaka (Mar 14 2021 at 14:55):

@Sean Hey, so, I just moved all data to my new laptop. So, when I load the primitives.tcl, it shows that thusal.dsp is failing.

view this post on Zulip Thusal Ranawaka (Mar 14 2021 at 14:56):

image.png

view this post on Zulip Thusal Ranawaka (Mar 14 2021 at 14:58):

And some others too.

view this post on Zulip Thusal Ranawaka (Mar 15 2021 at 13:58):

Oh no, @Sean I think some of my .g files are corrupted during the data transferring process like the VOL, DSP etc.

view this post on Zulip Thusal Ranawaka (Mar 15 2021 at 13:58):

I have to remake them all.

view this post on Zulip Thusal Ranawaka (Mar 15 2021 at 13:59):

Oh..., I think the directory is not in the correct path.

view this post on Zulip Sean (Mar 15 2021 at 20:10):

@Thusal Ranawaka The objects in your .g file refer to a file (thusal.dsp) that is not located where it was before, so it can't find it.

view this post on Zulip Sean (Mar 15 2021 at 20:11):

if you run the "l" command on the vol or dsp, you can see what that file name is and make sure it's in the same directory as the .g file.

view this post on Zulip Thusal Ranawaka (Mar 16 2021 at 01:31):

@Sean Found the problem, it can't find the y.bw file in case of the DSP. As you said...

view this post on Zulip Thusal Ranawaka (Mar 16 2021 at 01:31):

image.png

view this post on Zulip Thusal Ranawaka (Mar 16 2021 at 01:34):

But the solution for this is changing the directory. Using cd command.
So, here's the report
Where is MGED? : C:\Users\Thusal Ranawaka\OneDrive\Documents\brlcad\build\Debug\bin
Where is the y.bw file? : C:\Users\Thusal Ranawaka\OneDrive\Documents\db

view this post on Zulip Thusal Ranawaka (Mar 16 2021 at 01:36):

So, when I try to change the directory, here's what's happening,
First, the directory changes to Documents
But it doesn't change to db folder.
image.png

view this post on Zulip Sean (Apr 20 2021 at 16:14):

At a glance, I would say you're wrong about C:\Users\Thusal Ranawaka\OneDrive\Documents\db ....

view this post on Zulip Thusal Ranawaka (Apr 22 2021 at 01:34):

oh


Last updated: Oct 09 2024 at 00:44 UTC