Stream: Google Code-in

Topic: General Help


view this post on Zulip Mahdi (Jan 07 2018 at 16:57):

Hey, could you reply to this topic instead? @vasugarg

view this post on Zulip Mahdi (Jan 07 2018 at 17:00):

i was just following this guide-
http://brlcad.org/wiki/Compiling

Did you follow the instructions exactly? What are your system specifications? (i.e. operating system)

view this post on Zulip vasugarg (Jan 07 2018 at 17:03):

Screenshot-from-2018-01-07-11-51-25.png

view this post on Zulip Lucas Prieels (Jan 07 2018 at 17:04):

That's the right topic, thanks! I'm not used to Tk, but I think you have to install it

view this post on Zulip vasugarg (Jan 07 2018 at 17:05):

@Mahdi i did follow the steps exactly

view this post on Zulip Lucas Prieels (Jan 07 2018 at 17:05):

Here: https://www.tcl.tk/software/tcltk/download.html

view this post on Zulip vasugarg (Jan 07 2018 at 17:05):

@Mahdi Yes i did

view this post on Zulip Mahdi (Jan 07 2018 at 17:05):

Did you install xserver?

view this post on Zulip Mahdi (Jan 07 2018 at 17:07):

aptitude install xserver-xorg-dev

view this post on Zulip vasugarg (Jan 07 2018 at 17:07):

@Lucas Prieels which one exactly ?

view this post on Zulip vasugarg (Jan 07 2018 at 17:08):

@ it's downloading

view this post on Zulip Mahdi (Jan 07 2018 at 17:09):

Since you're running on (presumably) stock ubuntu you should install the 4 dependencies

view this post on Zulip vasugarg (Jan 07 2018 at 17:09):

@Mahdi i hadn' t downloaded it previously

view this post on Zulip Mahdi (Jan 07 2018 at 17:09):

There's your issue :)

view this post on Zulip vasugarg (Jan 07 2018 at 17:11):

no i was referring to xserver

view this post on Zulip vasugarg (Jan 07 2018 at 17:11):

as far as dependencies are concerned

view this post on Zulip vasugarg (Jan 07 2018 at 17:11):

i have downloaded all of them

view this post on Zulip Mahdi (Jan 07 2018 at 17:11):

    aptitude install sed byacc flex xsltproc
    aptitude install libncursesw5-dev libfontconfig-dev
    aptitude install xserver-xorg-dev
    aptitude install libx11-dev

view this post on Zulip Mahdi (Jan 07 2018 at 17:12):

These are all installed?

view this post on Zulip vasugarg (Jan 07 2018 at 17:13):

yup

view this post on Zulip vasugarg (Jan 07 2018 at 17:16):

every step is complete apart from the last step which requires us to run the mged or archer cmnd

view this post on Zulip vasugarg (Jan 07 2018 at 17:16):

sorry

view this post on Zulip vasugarg (Jan 07 2018 at 17:16):

not the last step

view this post on Zulip vasugarg (Jan 07 2018 at 17:17):

run one is working

view this post on Zulip vasugarg (Jan 07 2018 at 17:17):

as i mentioned previously

view this post on Zulip vasugarg (Jan 07 2018 at 17:17):

had*

view this post on Zulip vasugarg (Jan 07 2018 at 17:19):

it's just that step which is causing problems

view this post on Zulip Mahdi (Jan 07 2018 at 17:19):

It still isn't working?

view this post on Zulip vasugarg (Jan 07 2018 at 17:19):

no

view this post on Zulip vasugarg (Jan 07 2018 at 17:21):

all the dependencies were already installed.

view this post on Zulip vasugarg (Jan 07 2018 at 17:26):

i am sending the screenshot Screenshot-from-2018-01-07-12-22-58.png

view this post on Zulip Mahdi (Jan 07 2018 at 17:27):

What version of ubuntu are you running

view this post on Zulip vasugarg (Jan 07 2018 at 17:28):

17.10

view this post on Zulip Mahdi (Jan 07 2018 at 17:35):

You could always try a fresh build ;\

view this post on Zulip vasugarg (Jan 07 2018 at 17:36):

i have already tried doing this several times

view this post on Zulip Siddharth (Jan 07 2018 at 17:40):

Hey @vasugarg I recommend you to check whether all dependencies are installed properly

view this post on Zulip Siddharth (Jan 07 2018 at 17:40):

And try a different version of xserver

view this post on Zulip vasugarg (Jan 07 2018 at 17:41):

@Siddharth Yes they are

view this post on Zulip vasugarg (Jan 07 2018 at 17:42):

is there anything , that had not been mentioned in the guide

view this post on Zulip vasugarg (Jan 07 2018 at 17:42):

was supposed to be done

view this post on Zulip vasugarg (Jan 07 2018 at 17:42):

and *

view this post on Zulip vasugarg (Jan 07 2018 at 17:50):

Did anyone come up with some a solution to this error ?

view this post on Zulip Siddharth (Jan 07 2018 at 17:59):

Try a different version of xserver

view this post on Zulip Siddharth (Jan 07 2018 at 18:00):

Or you could try checking out from svn

view this post on Zulip vasugarg (Jan 07 2018 at 18:01):

k

view this post on Zulip vasugarg (Jan 07 2018 at 18:01):

i'll try this

view this post on Zulip Sean (Jan 07 2018 at 18:02):

@vasugarg once you install the x11 dev packages, you have to recompile

view this post on Zulip Sean (Jan 07 2018 at 18:03):

and by recompile, I mean delete your build directory, recreate it, and do it again ... this time paying attention to the summary at the end of running cmake -- to make sure it says X11 is on or off

view this post on Zulip vasugarg (Jan 07 2018 at 18:19):

@Sean i did what you said

view this post on Zulip vasugarg (Jan 07 2018 at 18:20):

but the result was same

view this post on Zulip Sean (Jan 07 2018 at 18:33):

@vasugarg please show me your cmake summary

view this post on Zulip Sean (Jan 07 2018 at 18:34):

the result is irrelevant if something went wrong earlier that you didn't notice

view this post on Zulip Sean (Jan 07 2018 at 18:42):

@vasugarg so tell me the steps of what you did

view this post on Zulip vasugarg (Jan 07 2018 at 18:50):

http://brlcad.org/wiki/Compiling

view this post on Zulip Sean (Jan 07 2018 at 18:50):

so that's a web page with lots of info and different steps for different people

view this post on Zulip Sean (Jan 07 2018 at 18:50):

it doesn't tell me what YOU did :)

view this post on Zulip vasugarg (Jan 07 2018 at 18:52):

I exactly followed each and every step.

view this post on Zulip vasugarg (Jan 07 2018 at 18:53):

until the last step where i couldn't do i t further

view this post on Zulip Sean (Jan 07 2018 at 18:53):

@vasugarg no you're missing the point

view this post on Zulip Sean (Jan 07 2018 at 18:54):

Compiling has a lot of "here are things you need to do" ... not steps

view this post on Zulip Sean (Jan 07 2018 at 18:54):

it tries to explain things because the actual steps necessary are going to be a little different for everyone

view this post on Zulip Sean (Jan 07 2018 at 18:54):

what's the first thing you did?

view this post on Zulip vasugarg (Jan 07 2018 at 18:55):

How exactly should i explain ?

view this post on Zulip Sean (Jan 07 2018 at 18:55):

the fact that you're telling me you "followed each and every step" really tells me that you didn't actually understand what you were reading... and that you were mostly copy-pasting commands you saw

view this post on Zulip Sean (Jan 07 2018 at 18:55):

which isn't going to work

view this post on Zulip vasugarg (Jan 07 2018 at 18:55):

sought of

view this post on Zulip Sean (Jan 07 2018 at 18:55):

hardly ever

view this post on Zulip vasugarg (Jan 07 2018 at 18:56):

Pls i want to learn this

view this post on Zulip Sean (Jan 07 2018 at 18:56):

tell me what you did

view this post on Zulip Sean (Jan 07 2018 at 18:56):

I'm trying to help you, but you're not telling me any useful information yet

view this post on Zulip Sean (Jan 07 2018 at 18:56):

tell me what you did ... pointing me at a web page isn't telling me what you did

view this post on Zulip vasugarg (Jan 07 2018 at 18:56):

i am not just able to

view this post on Zulip Sean (Jan 07 2018 at 18:56):

if you can't tell me what you did, how am I supposed to tell you what you did wrong?

view this post on Zulip vasugarg (Jan 07 2018 at 18:56):

put it out in words

view this post on Zulip Sean (Jan 07 2018 at 18:57):

then show me

view this post on Zulip Sean (Jan 07 2018 at 18:57):

every command you ran

view this post on Zulip vasugarg (Jan 07 2018 at 18:57):

Ok

view this post on Zulip vasugarg (Jan 07 2018 at 18:57):

i can do that

view this post on Zulip vasugarg (Jan 07 2018 at 19:01):

Screenshot-from-2018-01-07-14-01-15.png

view this post on Zulip vasugarg (Jan 07 2018 at 19:02):

This step basically involves installing Cmake

view this post on Zulip Sean (Jan 07 2018 at 19:03):

there is no package named "Cmake" ... as it's telling you right there

view this post on Zulip Sean (Jan 07 2018 at 19:03):

so right away, that's wrong

view this post on Zulip vasugarg (Jan 07 2018 at 19:04):

that's i haven' t remvd
the previous one

view this post on Zulip vasugarg (Jan 07 2018 at 19:05):

because*

view this post on Zulip vasugarg (Jan 07 2018 at 19:06):

sorry i made a mistake

view this post on Zulip vasugarg (Jan 07 2018 at 19:06):

i'll do it again

view this post on Zulip Sean (Jan 07 2018 at 19:07):

no, it's not because you hadn't removed the previous

view this post on Zulip Sean (Jan 07 2018 at 19:07):

it's literally telling you that "Cmake" is not a package because that is NOT the name of the package

view this post on Zulip Sean (Jan 07 2018 at 19:07):

it's "cmake" ... not "Cmake"

view this post on Zulip vasugarg (Jan 07 2018 at 19:07):

Yeah

view this post on Zulip Sean (Jan 07 2018 at 19:08):

details like that matter a lot when you work with software

view this post on Zulip Sean (Jan 07 2018 at 19:08):

a LOT

view this post on Zulip vasugarg (Jan 07 2018 at 19:08):

i figured it just now

view this post on Zulip vasugarg (Jan 07 2018 at 19:09):

Screenshot-from-2018-01-07-14-09-02.png

view this post on Zulip vasugarg (Jan 07 2018 at 19:09):

that's the correct one

view this post on Zulip Sean (Jan 07 2018 at 19:10):

okay, so you installed some essential tools

view this post on Zulip Sean (Jan 07 2018 at 19:10):

and cmake and make

view this post on Zulip Sean (Jan 07 2018 at 19:10):

so then what was next?

view this post on Zulip vasugarg (Jan 07 2018 at 19:12):

installing Dependencies

view this post on Zulip vasugarg (Jan 07 2018 at 19:14):

Screenshot-from-2018-01-07-14-13-39.png

view this post on Zulip Sean (Jan 07 2018 at 19:15):

okay and next

view this post on Zulip vasugarg (Jan 07 2018 at 19:15):

pasted image

view this post on Zulip Sean (Jan 07 2018 at 19:17):

okay I get it you installed a bunch of things via aptitude ... then what did you do?

view this post on Zulip vasugarg (Jan 07 2018 at 19:18):

Download Brl cad

view this post on Zulip vasugarg (Jan 07 2018 at 19:20):

using this cmnd - svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad-svn-trunk

view this post on Zulip Sean (Jan 07 2018 at 19:22):

okay, then what

view this post on Zulip vasugarg (Jan 07 2018 at 19:25):

configuring the build

view this post on Zulip Sean (Jan 07 2018 at 19:25):

how did you configure your build?

view this post on Zulip Sean (Jan 07 2018 at 19:51):

@vasugarg are you there?

view this post on Zulip Siddharth (Jan 08 2018 at 07:31):

@vasugarg Did it work?

view this post on Zulip Siddharth (Jan 08 2018 at 07:32):

You won't get this feeling in an easy task, getting rejected 5-6 times, trying again and again, but when you achieve the goal of the task, you feel that ecstasy

view this post on Zulip vasugarg (Jan 08 2018 at 11:32):

@Sean
using these commands -
cd brlcad-svn-trunk
mkdir .build
cd .build
cmake .. -DBRLCAD_ENABLE_STRICT=NO -DBRLCAD_BUNDLED_LIBS=ON -DCMAKE_BUILD_TYPE=Release

view this post on Zulip William Cook (Jan 08 2018 at 11:38):

Did u try using the cmake gui?

view this post on Zulip William Cook (Jan 08 2018 at 11:38):

Its alot easier

view this post on Zulip vasugarg (Jan 08 2018 at 11:58):

where to find it ?

view this post on Zulip vasugarg (Jan 08 2018 at 12:03):

@William Cook ?

view this post on Zulip William Cook (Jan 08 2018 at 12:03):

Do a search.

view this post on Zulip Sean (Jan 08 2018 at 14:47):

@vasugarg post the entire output from running those commands,

view this post on Zulip Sean (Jan 08 2018 at 14:47):

the most important bits are what is displayed at the end of running cmake

view this post on Zulip vasugarg (Jan 08 2018 at 19:04):

the cmake one ?

view this post on Zulip vasugarg (Jan 08 2018 at 19:05):

Screenshot-from-2018-01-08-14-02-24.png

view this post on Zulip vasugarg (Jan 08 2018 at 19:08):

@Sean well here i did it differently

view this post on Zulip vasugarg (Jan 08 2018 at 19:09):

as in i didn't use those commands

view this post on Zulip vasugarg (Jan 08 2018 at 19:11):

instead i just downloaded the Cmake from https://cmake.org/download/

view this post on Zulip vasugarg (Jan 08 2018 at 19:13):

and then configured it as you would generally configure a tar.gz file

view this post on Zulip vasugarg (Jan 08 2018 at 19:13):

using ./configure

view this post on Zulip vasugarg (Jan 08 2018 at 19:14):

after ofc extracting it

view this post on Zulip vasugarg (Jan 08 2018 at 19:15):

@ sean are you there ?

view this post on Zulip Sean (Jan 08 2018 at 19:15):

I am, but I'm in the middle of another conversation -- please be patient

view this post on Zulip vasugarg (Jan 08 2018 at 19:15):

k

view this post on Zulip vasugarg (Jan 08 2018 at 19:15):

i'll wait

view this post on Zulip Sean (Jan 08 2018 at 19:24):

@vasugarg I'm very confused as to what you're doing now ... because you're showing me a screenshot of you compiling cmake

view this post on Zulip Sean (Jan 08 2018 at 19:25):

you already installed cmake a long time ago, in the very first step ... you ran aptitude install cmake

view this post on Zulip Sean (Jan 08 2018 at 19:25):

so why are you compiling cmake?

view this post on Zulip Sean (Jan 08 2018 at 19:25):

why did you even download cmake source code?

view this post on Zulip Sean (Jan 08 2018 at 19:26):

the instructions said "If needed, compiling from their source distribution is actually very easy." ... but you didn't need to because you ran aptitude install cmake...

view this post on Zulip Sean (Jan 09 2018 at 05:56):

@vasugarg it looks like this was your previous topic

view this post on Zulip vasugarg (Jan 09 2018 at 05:57):

k

view this post on Zulip vasugarg (Jan 09 2018 at 05:58):

shall we start then ?

view this post on Zulip Sean (Jan 09 2018 at 06:00):

@vasugarg I only have a few minutes, but I posted several questions for you already

view this post on Zulip Sean (Jan 09 2018 at 06:00):

earlier, which you never responded

view this post on Zulip Sean (Jan 09 2018 at 06:01):

we can't keep backtracking, you have to read everything

view this post on Zulip vasugarg (Jan 09 2018 at 06:02):

@Sean Yeah i read that

view this post on Zulip vasugarg (Jan 09 2018 at 06:02):

what should i do now

view this post on Zulip vasugarg (Jan 09 2018 at 06:03):

as in that was attempt to make sure that i had every necessary file

view this post on Zulip Sean (Jan 09 2018 at 06:03):

answer the questions... :)

view this post on Zulip Sean (Jan 09 2018 at 06:03):

but it doesn't make sense, or implies you are heavily guessing

view this post on Zulip Sean (Jan 09 2018 at 06:03):

you installed cmake

view this post on Zulip vasugarg (Jan 09 2018 at 06:03):

y

view this post on Zulip Sean (Jan 09 2018 at 06:04):

but now you're asking questions about cmake compilation and installation, which you were doing right because you weren't reading their instructions too...

view this post on Zulip Sean (Jan 09 2018 at 06:04):

compiling software is rarely ever going to tell you exactly what you need to do

view this post on Zulip Sean (Jan 09 2018 at 06:04):

you need to think and understand (and read a lot)

view this post on Zulip Sean (Jan 09 2018 at 06:05):

if you skip any of those three, you will always run into problems

view this post on Zulip Sean (Jan 09 2018 at 06:05):

at this point, I'm not even sure where you were at ... you were running cmake and I asked you for a log and you never replied

view this post on Zulip Sean (Jan 09 2018 at 06:06):

@Sean
using these commands -
cd brlcad-svn-trunk
mkdir .build
cd .build
cmake .. -DBRLCAD_ENABLE_STRICT=NO -DBRLCAD_BUNDLED_LIBS=ON -DCMAKE_BUILD_TYPE=Release

you posted this

view this post on Zulip Sean (Jan 09 2018 at 06:06):

@vasugarg post the entire output from running those commands,

I posted this in reply

view this post on Zulip Sean (Jan 09 2018 at 06:06):

the most important bits are what is displayed at the end of running cmake

and this

view this post on Zulip vasugarg (Jan 09 2018 at 06:07):

yeah initially i did follow this method to install cmake

view this post on Zulip Sean (Jan 09 2018 at 06:07):

that is not a method to install cmake

view this post on Zulip Sean (Jan 09 2018 at 06:07):

you installed cmake when you ran "aptitude install cmake"

view this post on Zulip Sean (Jan 09 2018 at 06:08):

aptitude is a method for installing cmake

view this post on Zulip Sean (Jan 09 2018 at 06:08):

downloading and building cmake is another method for installing cmake

view this post on Zulip Sean (Jan 09 2018 at 06:08):

running "cd brlcad-svn-trunk ... mkdir .build ... cmake .. -DBRLCAD_ENABLE..." is not a method to install cmake

view this post on Zulip vasugarg (Jan 09 2018 at 06:09):

okay sorry that was to build configuration

view this post on Zulip Sean (Jan 09 2018 at 06:09):

those are configuration steps for RUNNING cmake

view this post on Zulip Sean (Jan 09 2018 at 06:09):

for configuring BRL-CAD

view this post on Zulip vasugarg (Jan 09 2018 at 06:09):

Yes

view this post on Zulip Sean (Jan 09 2018 at 06:11):

so I'll ask again

view this post on Zulip Sean (Jan 09 2018 at 06:12):

you ran the configuration steps -- show me them

view this post on Zulip Sean (Jan 09 2018 at 06:12):

including the entire output from running cmake

view this post on Zulip vasugarg (Jan 09 2018 at 06:17):

k

view this post on Zulip vasugarg (Jan 09 2018 at 06:18):

Screenshot-from-2018-01-09-01-18-04.png

view this post on Zulip vasugarg (Jan 09 2018 at 06:21):

when i run this step - mkdir .build , it says mkdir: cannot create directory ‘.build’: File exists

view this post on Zulip Sean (Jan 09 2018 at 06:22):

Screenshot-from-2018-01-09-01-18-04.png

you've had too many failures and confusions... I really need to see everything, the entire log of commands and all the output from cmake

view this post on Zulip Sean (Jan 09 2018 at 06:22):

on the surface, that summary looks correct

view this post on Zulip vasugarg (Jan 09 2018 at 06:25):

should i first run make command

view this post on Zulip vasugarg (Jan 09 2018 at 06:25):

?

view this post on Zulip Sean (Jan 09 2018 at 06:26):

no, you should post your entire log like I asked

view this post on Zulip vasugarg (Jan 09 2018 at 06:26):

and then show you the output ?

view this post on Zulip Sean (Jan 09 2018 at 06:26):

@vasugarg after you show the entire output from running those commands you posted

view this post on Zulip Rahil Malik (Jan 09 2018 at 06:27):

actually i think zulip has some character limit ,

view this post on Zulip Naseef (Jan 09 2018 at 06:28):

you can upload the log file.

view this post on Zulip vasugarg (Jan 09 2018 at 06:28):

@Sean like i said it isn' t allowing me to make the . build dir now

view this post on Zulip Naseef (Jan 09 2018 at 06:28):

on windows?

view this post on Zulip vasugarg (Jan 09 2018 at 06:28):

n o

view this post on Zulip vasugarg (Jan 09 2018 at 06:28):

linux

view this post on Zulip vasugarg (Jan 09 2018 at 06:28):

ubuntu

view this post on Zulip Sean (Jan 09 2018 at 06:28):

@vasugarg maybe because you already made it once? what's the error?

view this post on Zulip vasugarg (Jan 09 2018 at 06:29):

17.10

view this post on Zulip Naseef (Jan 09 2018 at 06:29):

I'm on 17.10 too

view this post on Zulip Naseef (Jan 09 2018 at 06:29):

ls and see if .build was already there

view this post on Zulip Sean (Jan 09 2018 at 06:29):

you just showed me a screenshot where you ran cmake in your current source directory, so that made it also your .build directory

view this post on Zulip vasugarg (Jan 09 2018 at 06:30):

but

view this post on Zulip vasugarg (Jan 09 2018 at 06:30):

when i try to access it

view this post on Zulip vasugarg (Jan 09 2018 at 06:30):

it says no dir found

view this post on Zulip Rahil Malik (Jan 09 2018 at 06:30):

you can upload the log file.

thats what i was going to suggest :)

view this post on Zulip Sean (Jan 09 2018 at 06:30):

@vasugarg I think you've gotten turned around one too many times

view this post on Zulip Naseef (Jan 09 2018 at 06:30):

:D

view this post on Zulip Sean (Jan 09 2018 at 06:31):

you need to start over from a fresh checkout

view this post on Zulip vasugarg (Jan 09 2018 at 06:31):

Should i just remove everything

view this post on Zulip Sean (Jan 09 2018 at 06:31):

I suggest you delete your BRL-CAD source and build trees

view this post on Zulip Naseef (Jan 09 2018 at 06:31):

you should, AFAIK

view this post on Zulip Sean (Jan 09 2018 at 06:31):

rm -rf /home/defengartner01/brlcad-svn-trunk

view this post on Zulip Sean (Jan 09 2018 at 06:32):

then:

view this post on Zulip Sean (Jan 09 2018 at 06:32):

svn co https://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad.trunk

view this post on Zulip Sean (Jan 09 2018 at 06:32):

cd brlcad.trunk

view this post on Zulip Sean (Jan 09 2018 at 06:32):

mkdir .build

view this post on Zulip Sean (Jan 09 2018 at 06:32):

cd .build

view this post on Zulip Sean (Jan 09 2018 at 06:32):

cmake ..

view this post on Zulip Sean (Jan 09 2018 at 06:32):

make

view this post on Zulip Sean (Jan 09 2018 at 06:33):

post the entire output including everything you type and everything they print -- not just screenshots

view this post on Zulip Sean (Jan 09 2018 at 06:33):

times up for me, see you all later

view this post on Zulip Sean (Jan 09 2018 at 06:33):

good luck!

view this post on Zulip vasugarg (Jan 09 2018 at 06:33):

this should be done in which dir ?

view this post on Zulip Sean (Jan 09 2018 at 06:34):

this should be done in which dir ?

it doesn't matter much, in /home/defengartner01 is fine

view this post on Zulip Naseef (Jan 09 2018 at 06:51):

what's -rf? I mostly use -r

view this post on Zulip Jeff Sieu (Jan 09 2018 at 08:48):

I think f is force

view this post on Zulip vasugarg (Jan 09 2018 at 17:15):

@Sean when i was trying to run this --> root@vasugarg1:/home/defengartner01/brlcad.trunk/.build# cmake ..
CMake Error: The source directory "/home/defengartner01/brlcad.trunk" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

view this post on Zulip vasugarg (Jan 09 2018 at 17:15):

above error occured

view this post on Zulip Jeff Sieu (Jan 09 2018 at 17:22):

Did your svn checkout get corrupted or something? I believe it should have a top-level CMakeLists.txt. Maybe svn got interrupted halfway or something

view this post on Zulip caleb parks (Jan 09 2018 at 23:22):

In BRL-CAD is z up or is y up?

view this post on Zulip William Cook (Jan 09 2018 at 23:37):

Y is up, that rule is universal @caleb parks

view this post on Zulip William Cook (Jan 09 2018 at 23:38):

Z is a 3d attribute

view this post on Zulip caleb parks (Jan 09 2018 at 23:40):

I have worked in programs where z is up and I have worked in programs where y is up so I didn't know.

view this post on Zulip William Cook (Jan 09 2018 at 23:44):

Oh ok, i didnt know, but yeah im pretty sure y is up

view this post on Zulip Jeff Sieu (Jan 10 2018 at 09:14):

No, the Z axis is the vertical axis, (up and down). While the X and Y axis are facing "forwards" or "sideways", depending on your camera's rotation.

view this post on Zulip Siddharth (Jan 10 2018 at 16:41):

@caleb parks which programs have you worked on?

view this post on Zulip caleb parks (Jan 10 2018 at 16:54):

blender, unity maybe more but I can't think of any at the moment. in blender Z is up whereas in unity Y is up.

view this post on Zulip vasugarg (Jan 10 2018 at 17:13):

@Jeff Sieu it didn't

view this post on Zulip Jeff Sieu (Jan 10 2018 at 17:21):

It didn't have a CMakeLists.txt file?

view this post on Zulip vasugarg (Jan 10 2018 at 17:40):

@jeff sieuYEP >

view this post on Zulip vasugarg (Jan 10 2018 at 17:40):

it didn't

view this post on Zulip Jeff Sieu (Jan 10 2018 at 23:20):

@vasugarg That's the problem, there should be a CMakeLists.txt inside brlcad-svn-trunk, or whatever the name of the folder you checked out brlcad into is.

view this post on Zulip Sean (Jan 12 2018 at 16:59):

GAH, Nooooooo.. Z+ is UP!

view this post on Zulip Sean (Jan 12 2018 at 16:59):

that's an ancient debate

view this post on Zulip Sean (Jan 12 2018 at 17:00):

systems that started out view-centric (e.g., games) tend to think of the computer display first with X being horizontal and Y being vertical, thus Z going forward and backwards

view this post on Zulip Sean (Jan 12 2018 at 17:02):

systems that are model-centric focus on the model where X and Y are your coordinates on the ground and Z is your vertical axis or height off the ground

view this post on Zulip Sean (Jan 12 2018 at 17:02):

CAD industry, airline industry, military industry, weather industry ... all use +Z is up in their software and systems

view this post on Zulip Naseef (Jan 12 2018 at 17:03):

When we're drawing, We always use Y as up. I always thought that's how it should be in 3D.

view this post on Zulip Sean (Jan 12 2018 at 17:03):

gaming industry, animation, and content modelers (e.g., movie industry) tend to use +Y for up

view this post on Zulip Sean (Jan 12 2018 at 17:04):

@Naseef that's because when you're drawing, you are view-centric -- focused on the screen

view this post on Zulip Naseef (Jan 12 2018 at 17:05):

So, In 3D, Our view is top-down. Right?

view this post on Zulip Sean (Jan 12 2018 at 17:05):

and there it certainly makes sense... what we don't think makes sense is to extend that into 3D domain because that's just not how physical systems are represented or how you would model them

view this post on Zulip Sean (Jan 12 2018 at 17:05):

not necessarily, no

view this post on Zulip Sean (Jan 12 2018 at 17:05):

rarely even

view this post on Zulip Sean (Jan 12 2018 at 17:06):

if you were modeling on paper on a desk, you'd almost certainly start with X/Y coordinates and then .. Z would be up

view this post on Zulip Naseef (Jan 12 2018 at 17:06):

Well, When we model a house plan, etc. We draw it from top view, and then build the walls along Z.

view this post on Zulip Sean (Jan 12 2018 at 17:07):

sometimes, that's a specific style of modeling

view this post on Zulip Sean (Jan 12 2018 at 17:07):

and that's even still consistent with Z is up

view this post on Zulip Naseef (Jan 12 2018 at 17:08):

that's an ancient debate

Now I understand why it's a debate, LOL

view this post on Zulip Sean (Jan 12 2018 at 17:12):

basically it just depends if the focus is more on the computer screen or the thing "in" the computer screen (the model)

view this post on Zulip Sean (Jan 12 2018 at 17:12):

nearly any field with a physical counterpart, something real, uses Z for up

view this post on Zulip Sean (Jan 12 2018 at 17:13):

things focused on animation and rendering tend to use Y for up


Last updated: Oct 09 2024 at 00:44 UTC