hey @Jeffrey Liu :)
Hey @Himanshu Sekhar Nayak :)
@Daniel Rossberg
himanshu@asus:~
$ gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
How can I download BRL-CAD on MAC? When I will open the programm it says 'the window closes in 5 seconds' and then the programm is closed..
try taking help of this site https://brlcad.org/wiki/Compiling/XCode
Someone also has encountered the same problem and has asked for help(https://sourceforge.net/p/brlcad/support-requests/117/)
One solution given there is to download X11
Sir pls check the pending tasks as 20hrs left only for deadline and i have many lined up
Sir pls check the pending tasks as 20hrs left only for deadline and i have many lined up
Sir, for me also (https://codein.withgoogle.com/dashboard/task-instances/4605933116719104/)
Hey y'all, I'm vityavv (working on the about page), and just submitted the task for review
@DifferentMoods do you not get two windows that then display? click the "Details" arrow and see what it says.
@Shantanu Gupta and @Mayank Goyal you don't need to ask -- reviews are done in order by the assigned mentors. in this case, the librecad folks haven't gotten to their reviews yet for today. looks like you submitted shortly after they completed their last round of daily reviews.
hello @Victor Veytsman !
hello!
hey @Simon Letsoalo what's up :)
nothing much @Himanshu Sekhar Nayak just trying to complete a task
I'm intrested in the Model the word "BRL-CAD" task!
I'm intrested in the Model the word "BRL-CAD" task!
yeah go on and let others too know if you face any difficulties :)
how can I render in appleseed
I have imported my sphere.obj file in the assembly and tried to give it a color but when I clicked render, the screen went pink
As I mentioned earlier, the pink indicates that your sphere has no material, and since your screen is completely pink, you must zoom out to view the entire sphere. You can explore the Cornell Box example to see how it is set up, and this may help as well: https://appleseedhq.net/docs/tutorials/gettingstarted.html
hey daniel, i am gonna start another "remove throw() statements". so will there be a problem if there are the previous changes in the patch files or do i need to keep those changes?
@Mayank Goyal This is the "error" that I mentioned above, which can be resolved through the steps that I provided.
I have completed it and submitted it for review
hey sean cna you help me?
don't ask to ask
others can help too :)
ok
do i have to keep the changes of the previous "remove throw() statements" tasks in the patch of the next tasks?
anyone please help me
on this
do i have to keep the changes of the previous "remove throw() statements" tasks in the patch of the next tasks?
hmm this will make the previous ones and later ones merged together
I can suggest to only keep the later ones
is there a way to include only specific files?
in the patch file?
(deleted)
what?
may be but idk
what I had done just redo the changes
what?
i think i will keep them
may be @Daniel Rossberg knows how not to merged later ones with previous ones
if the mentor says that i need to remove them, i wiil remove them and submit again for review.
dont tag them unnecessarily
they will get notification for that
and I can know how not to merge later ones with previous ones
not for you :/
ok
i will have to see whether to submit the changes with the previous ones or not
my ubuntu crashed on me without any reason yesterday
:\
i am working on another task
you?
I am working on BRL-CAD Lua binding: Fixing hellobrlcad test program
oh great
hello himanshu
hey :)
Hello
@Daniel Rossberg I am unable to find ::Title(). Am I missing something ?
btw himanshu, i found a way to include specific files in the patch
i knew that there would be a way
Daniel Rossberg I am unable to find ::Title(). Am I missing something ?
Yes, I told you where to look for it.
thanks for telling me that "may be" there is a way
Daniel Rossberg I am unable to find ::Title(). Am I missing something ?
Yes, I told you where to look for it.
yeah I searched on src/embeddedlua
but still I can't see the function definition
You have two possibilities: Think about to which file it would belong to, or use grep.
yea i searched in all the files there is no ::Title()
What was your search string?
i use atom btw
i searched ::Title()
i found one called ::Title(void)
in the src folder
Then, use a better search string, you are looking for a Lua, not a C++ function :wink:
this time i changed the string to "::Title" only
i found one called ::Title(void)
And? What have you done then?
i found one called ::Title(void)
which file it is ?
src/coreInterface/ConstDatabase.cpp
this time i changed the string to "::Title" only
It still looks very much like C++.
its only in the ConstDatabase.cpp
its only in the ConstDatabase.cpp
And? Do you have an idea what the code in this file does?
we are talking about rt^3, right?
i think it creates , stores or does something related databases?
as its name implies
right?
What do you think which database is meant?
However, what I meant is, how does this Lua stuff work? Do you have an idea when looking at this file?
i dont know. geometry/database file?
i dont know much about lua
i tried to learn for trying it on a gaming platform named Roblox
but i didnt
what according to me is if :Title()
is Lua function then definitely it shall look like this function name_of_the_class:Title() .... end
ok
and here database
is an object when called to Title() like database:Title()
ok
i dont know much about lua except that it is based on c and that it is an embedded scripting language
anyways you guys continue
i was going for the c++ way
It looks like you still don't what the function name is, i.e. for which string you shall look for in src/embeddedLua.
honestly talking, i also really dont know
It looks like you still don't what the function name is, i.e. for which string you shall look for in src/embeddedLua.
yeah
i was going for the c++ way
embeddedLua is a C++ library, which implements an extension for an interpreter. You won't find it very often that you program C++ to do something in C++. E.g., BRL-CAD is about geometries ;)
ok
It looks like you still don't what the function name is, i.e. for which string you shall look for in src/embeddedLua.
yeah
Okay, I'll help you here: The string you have to look for is "Title". Surprised?
but I searched that
And? Which file in src/embeddedLua contains "Title"?
luadatabase.cpp?
luadatabase.cpp?
but there you will find const char* title
which is not a function
static int Title
i found
is that the one?
line 54
is that a function ?
that's a static var
luadatabase.cpp?
but there you will find
const char* title
which is not a function
Really? I have
~/Devel/BRL-CAD/rt^3/src/embeddedLua> grep Title * luadatabase.cpp:static int Title luadatabase.cpp: lua_pushstring(luaState, database->Title()); luadatabase.cpp: lua_pushstring(luaState, "Title"); luadatabase.cpp: lua_pushcfunction(luaState, Title);
There is no "const char* title".
thats a function
yea that one
static int Title
(
lua_State* luaState
) {
Database* database = GetDatabase(luaState);
lua_pushstring(luaState, database->Title()); return 1;
}
The point is, that there is a static function Title() defined. Static means that it is used in this file only, but where?
It should be a line which contains the string (i.e. Function name) "Title" too.
like this lua_pushstring(luaState, "Title");
like this
lua_pushstring(luaState, "Title");
Not really (or almost?). "Title" is a string, we are looking for a function called Title.
or this lua_pushcfunction(luaState, Title);
There are 4 lines containing the string Title:
The first one defines the function.
The second one is a call of an object method, but the here defined Title() is a simple function.
The third one is a string.
yup
btw daniel should i have included the previous changes from the "remove throw()" task in the later tasks of "remove throw ()"?
btw daniel should i have included the previous changes from the "remove throw()" task in the later tasks of "remove throw ()"?
No, you did it fine.
or this
lua_pushcfunction(luaState, Title);
Note the lua_pushstring(luaState, "Title");
in the line before. This part of the code connects the string "Title" with the function Title() defined in luadatabase.cpp. Lua is an interpreted language. When the interpreter finds the string "Title" at an appropriate place, it calls the Title() function.
no, for the next remove tasks
cuz i have claimed one
@Sumagna Das You did it fine, really. You removed the part already contained in "A - C" in your patch, which makes it easier to apply them after each other.
https://codein.withgoogle.com/dashboard/task-instances/5344642015428608/ like for this one
does the patch has to contain the previous a-c files? or they dont have to?
or this
lua_pushcfunction(luaState, Title);
Note the
lua_pushstring(luaState, "Title");
in the line before. This part of the code connects the string "Title" with the function Title() defined in luadatabase.cpp. Lua is an interpreted language. When the interpreter finds the string "Title" at an appropriate place, it calls the Title() function.
so in simple words string "Title" search for function Title() okay
and what about this lua_pushstring(luaState, database->Title());
. Here a string should be passed but a object method has been called
and what about this
lua_pushstring(luaState, database->Title());
. Here a string should be passed but a object method has been called
In this part of the code, the return value of database->Title(), a string, is pushed on the Lua stack. This value becomes the return value of the Lua function.
yeah I got that where is the error
thanks @Daniel Rossberg for helping me
since these are all the BRLCAD stuff so it should be in BRLCAD "namespace"
btw thanks for pointing out
What I told you wasn't helpful for this particular bug, but maybe for analyzing somebody else's code.
@Daniel Rossberg here it is h1manshu@asus:~/brlcad/rt^3/build
$ tests-bin/hellobrlcad ~/brlcad/brlcad-code/build/share/db/cray.g
Hello Cray X-MP section
Looks like you can submit the patch now. A one-liner?
yes
one liner
okay then submitting
What I told you wasn't helpful for this particular bug, but maybe for analyzing somebody else's code.
btw have you written those codes ?
It was written in 2017's Google Code in.
wow
:)
I've just committed the A - C and C - F parts of the remove throw task.
btw I am thinking what to do next
yes
done
btw I am thinking what to do next
There is one Lua task left: "BRL-CAD Lua binding: Object"
I plan for more, depending on how this one works. There you need a basic understanding on how the Lua embedding works (but still on copy-n-paste level).
At the other hand, you could do the modelling tutorials to learn more about BRL-CAD.
okay I will
since these are all the BRLCAD stuff so it should be in BRLCAD "namespace"
BTW, BRLCAD is not a namespace but a table. We have Lua here ;)
I thought it is a namespace
now I understand
I will see some examples how binding works
bye
see you later
The table BRLCAD contains another table at index database which has a function at index Title which has a table as parameter. Therfore, it's in fact BRLCAD["database"]["Title"](BRLCAD["database"])
. Now BRLCAD["database"]
can be written as BRLCAD.database
, and if the first parameter of a table function is the table itself, this can be written as :, i.e. BRLCAD.database:Title()
.
BTW, BRLCAD is an entry in the global table.
bye
@Himanshu Sekhar Nayak Committed your patch.
I'm not familiar with that syntax...
so there's a global table called BRLCAD?
OOoooh.. that's lua in a c-string
haha, got it. was wondering wth kind of c++20 syntax they're introducing .. ;)
No, there is a global table which has an index "BRLCAD" ...
In Lua, everything is a table.
That's all valid Lua syntax.
gotcha. I was mostly just baffled by the X.Y:Z syntax
haven't done a whole lot with lua from a non-user side
hello!
"Hi, I'm participating in GCI. The Appleseed tasks sound really interesting to me!"
@SHIVANG AGRAWAL welcome, and glad to hear it! Please feel free to ask questions about your tasks, or just talk with others about development and your gci experience. Cheers!
hey chiranjiv, hows it going?
Hi @Sumagna Das . Its going good , what about you
@Daniel Rossberg so lua is basically a table where push and pop stack operation can go on ?
The central data storage is a stack data structure.
oh..
It's part of the struct lua_State.
@Daniel Rossberg are you facing any cmake ..
error while building rt^3
https://paste.ofcode.org/E2b4wGYvzvdU278CTBw8BD
?
btw I am At revision 74503.
Let me see ...
Okay, update and try again.
yeah fine now
@Daniel Rossberg what -1
mean here const char* name = luaL_checkstring(luaState, -1);
?
Also after adding attribute methods, how I can check if everything is compiling fine ?(like cmake .., make or any )
Also is it compulsory to add methods from protected area ?
btw I made some progress but I think there are some functions still left https://paste.ofcode.org/39VaDSs2WdigC3skcBe66u9
Hey @Sean was the image too small or too big(210x210 pixels)?
What errors are you talking about?
I will try to fix them
nothing major, but one I noticed right away is that you print into fp without opening it right after the "Load the specified ..." comment
it's not at all clear what that loop is even doing.
you then have a bizarre looping condition
for(x =-1000,i=0;x<=1000 || i<210;x+=10,i++) { for(y=-1000,j=0;y<=1000 || j<210;y+=10,j++){ float z=10000;
you also set the 'ap' callback parameters over and over and over to the same thing. should only need to set them once.
lastly, your style/formatting is a bit inconsistent. see HACKING for explanation, but the gist is to make any new code look just like the rest of the file.
Ok
Hey, I'm participating GCI, and I'm trying to run OGV on mac. But I get errors relating to fibers, can anyone provide any tips?
@Mrinal Jain can you share the errors? This guys are great with OGV @pooh (inder) @Panda (Gauravjeet Singh) @Shubham Rathore
Daniel Rossberg what
-1
mean hereconst char* name = luaL_checkstring(luaState, -1);
?
Is that mean it will read the string in backward direction or something like that ? @Daniel Rossberg
btw luaL_checkstring()
checks if arguments passed are strings or not and returns the string.
got it
@Himanshu Sekhar Nayak did you find the declaration or definition of luaL_checkstring()?
that should explain what the second parameter is for
ah, and I see that was your "btw" :) carry on.
Hey @Daniel Rossberg can you show me an example or something to write tests for testing hellobrlcad
?
Hey himanshu
or something like script ?
hey daniel does appleseed take a lot of time to build
Hey Daniel Rossberg can you show me an example or something to write tests for testing
hellobrlcad
?
hellobrlcad doesn't need to be tested, but it is a kind of test for BRLCAD.database:Title()
. Change the Lua code there to test something else.
hey daniel does appleseed take a lot of time to build
Can't say. I've never tried to compile it. Is there a task to compile it? I though, Appleseed has to be installed from a binary package.
https://codein.withgoogle.com/dashboard/task-instances/6564257471135744/
in this one it says "download appleseed and install from source"
For this set of tasks, you'll need to download and install appleseed from source
Okay. However, I've never compiled it from source.
It has a CMake configuration. Did you already tried it?
i was asking because
1) Its taking a lot of time
2) i will not use the laptop tomorrow because i am having eye problems
Then I'm afraid, I can't help you.
ok
i am having eye problems so my mom advised me to give some rest to my eyes as i am straining them very much
Get well soon!
btw if anyone can fix the errors tomorrow heres the log and output of CMake
CMakeOutput.log CMakeError.log
sayonara
bye guys
Hey himanshu
Hey @Sean @Daniel Rossberg I started the EBM images task set 1 but I'm having some difficulty understanding the task. Initially I thought that the issue was that EBM objects had a reliance on reading the .bw file, but when I was testing some stuff on mged, it seems like DSP objects have a similar reliance on the .dsp file. Am I doing something wrong?
So to clarify what I mean, for both the EBM and the DSP objects, after I relocate the .bw or .dsp file respectively, an error occurs when I try to draw either one of them. However, it was my understanding that DSP objects stored the data inside of dsp_bip
. I would assume that this is happening because of dsp_datasrc
is not actually set to RT_DSP_SRC_OBJ
, so am I doing something wrong when importing the DSP object? So far I've just been following https://brlcad.org/wiki/DSP
@SeanHey Sean, I abandon the previous task until you come back in and I claimed another task called " Import BRL-CAD model to FreeCAD". And I will submit it for review tonight or before as soon as I can.
@Sean I submit the task for review. Also, can I know some priority projects that I can do which contains less coding?
@Sean It's time to sleep see ya tomorrow and review my work when you got your time.
@Sean And please answer my problems if you can.
Hey @Sean What's up :-)
So to clarify what I mean, for both the EBM and the DSP objects, after I relocate the .bw or .dsp file respectively, an error occurs when I try to draw either one of them. However, it was my understanding that DSP objects stored the data inside of
dsp_bip
. I would assume that this is happening because ofdsp_datasrc
is not actually set toRT_DSP_SRC_OBJ
, so am I doing something wrong when importing the DSP object? So far I've just been following https://brlcad.org/wiki/DSP
Oh I think I got it, I didn't realize that the 'f' in the command stood for "file," which I believe is stored to dsp_datasrc
. I think if I were to use 'o' instead, it would store everything as an object?
Sorry, I'm still a little confused by the task at hand... it mentions modifying import5() and export5() so that datasrc
and bip
are written properly, but it seems like dsp_bip
and dsp_datasrc
are being used as well outside of those two functions - is it necessary for me to edit those as well?
Also, it looks like dsp_bip
is being written from ebm_get_data(), and modifying it is part of a later task? I'm a bit confused - could someone explain what exactly I'm supposed to do?
Hey,
I am participating in the GCI. I feel that the tasks offered by BRL-CAD are extremely interesting to work on.
@Sean Hey Sean, Can you name me some Priority Projects that I can do something like less coding? Also review my work when you got your time.
Tan how much tasks have you done
(deleted)
hey @Sean can you extend my task deadline
i was having eye problems so i had to keep away from the laptop
welcome @shubham
@starseeker Hey, Starseeker
Lots of guys are not much online these days.
Hi @Sean sorry to bother you, but could you clarify what I should be doing for task #1 of the EBM images task set? I detailed my questions above.
I'm still having difficulty understanding what parts I should be modifying
Weird, it looks like trying to make a DSP object is calling rt_dsp_import4() instead of rt_dsp_import5(). Is there something I should change to this command? in dsp1.s dsp f dsp-test.dsp 256 256 0 ad 1 0.005
@Sean should I be rewriting import5() so that instead of bu_vls_strcpy(&str, (const char*)ep->ext_buf)
, I do cp = (unsigned char *)ep->ext_buf
and then parse the information from there? Otherwise I'm not sure how I would be able to control how to parse for datasrc
@Sean Hey, Sean can you name me some priority tasks?
@Sean Hey Sean, I can't quite understand what have you said in my task.
Weird, it looks like trying to make a DSP object is calling rt_dsp_import4() instead of rt_dsp_import5(). Is there something I should change to this command?
in dsp1.s dsp f dsp-test.dsp 256 256 0 ad 1 0.005
Never mind, I was confused by the output which said something like rt_dsp_import4(4357); it looks like it's actually calling rt_dsp_import5().
@Sean I think you mean by the task is that my sphere has not much resoluted. So I will try to export in the format that you have mentioned and resubmit the task by tonight.
@Sean Also can you name me some priority tasks with less coding?
/usr/include/OpenImageIO/simd.h:1814:61: error: operator '&&' has no right operand
#if defined(ILMBASE_VERSION_MAJOR) && ILMBASE_VERSION_MAJOR >= 2
can anyone tell me why this error is coming
this is followed by /usr/include/OpenImageIO/simd.h:1863:61: error: operator '&&' has no right operand
#if defined(ILMBASE_VERSION_MAJOR) && ILMBASE_VERSION_MAJOR >= 2
^~
/usr/include/OpenImageIO/simd.h:6344:61: error: operator '&&' has no right operand
#if defined(ILMBASE_VERSION_MAJOR) && ILMBASE_VERSION_MAJOR >= 2
Hey Sean, Sorry I cannot do what have you said in the task and I commented and submit for review informing the problems I have.
@Sean Hey Sean, Sorry I cannot do what have you said in the task and I commented and submit for review informing the problems I have.
@Daniel Rossberg Dani, How much tasks have you done?
He is a mentor...
who
Daniel
ok
@Vikramaditya Singh in terms of time, I think it really depends on what you're hoping to accomplish and what tasks you want to do. Personally, I've spent a lot of time trying to learn how some of the code works so that I can do the coding tasks with a better understanding.
I can't speak much for its comparison with other softwares, but note that BRLCAD is used in many industries. One thing to note, though, is that it uses CSG rather than BREP
@Sean It's not working Sean and I leave a comment and submit for review.
daniel, did it build?
is it 24th december or 23rd december in your local time
(deleted)
@Daniel Rossberg Daniel are you there?
@Daniel Rossberg Daniel I have sent the .step file.
@Daniel Rossberg Please give me a solution to this.
@Daniel Rossberg Daniel are you talking about BRL-CAD 7.26.0 version. Yes, I have downloaded that package.
Sheldon?
@Daniel Rossberg What do you mean by Sheldon?
The multiple knocking :wink:
This is the .step file. Daniel
@Daniel Rossberg Hello
Even with the latest version I get Error: ::LoadONBrep(ON_Brep *brep<0x55eb6fb8f380>) not implemented for Curve
Yes, So do I
I submit it for review.
@Daniel Rossberg So it means there is a bug.
How did you created the file?
@Daniel Rossberg Using the export option in FreeCAD.
@Daniel Rossberg Hello
@Daniel Rossberg Daniel, I submit task for review.
@Daniel RossbergHello
@Sean Sorry, I can't find a solution.
@Daniel Rossberg Did you succeed in my problem?
hey sean can i use the file from the installation and not from the source code?
@Sumagna Das what do you mean?
i mean can i use the installation and not the source code for task #3?
Daniel Rossberg So it means there is a bug.
@Thusal Ranawaka did you switch to a box or is it still a sphere? I believe we entirely rely on the 3DM reader in OpenNURBS, so I would not characterize that message as a bug quite so quickly. I suggest trying a box if you haven't.
@Sumagna Das you have to give me a lot more context than that. there are lots of task #3's ....
i mean appleseed task #3
@Sumagna Das if you are referring to appleseed, yes you can just use an installation -- you do not need to compile everything from source. however, any code you provide does need to be able to compile somehow
its compiling
so you'll either have to set up your own build files that uses an installed appleseed or compile everything up (but that is QUITE a task in itself, that's not the intention)
i am gonna use the CMakeLists.txt to configure it for building
these errors are coming while building appleseed from source
Sean I submit the task for review. Also, can I know some priority projects that I can do which contains less coding?
@Thusal Ranawaka this is google CODE-in ... ;) That said, hoping to get a pristine version of the chessboard model -- there are two tasks related to it. But you need to have done all the tutorial tasks first and understood them well enough to do it right.
Hey @Daniel Rossberg can I get a day extension ?
just leave a comment and mark it ready for review. extensions are easy
Hi, I am Himanish. I learnt about BRL-CAD through Google Code-in. BRL-CAD is doing such a great job.
welcome @Himanish k Taneja ! What's been your favorite task so far?
Hey there. I am pleased to have a task by BRL-CAD on Google Code-in. BRL-CAD is doing a great job.
welcome @Aadithya Prakash Goutham !
Hi this is Shoaib Karnure. I found out about BRL-CAD through Google Code in. BRL-CAD is doing a fantastic job.
@Shoaib Karnure what tasks have you enjoyed or look forward to?
@Shoaib Karnure and why do you say BRL-CAD is doing a fantastic job?
Hey guys,
This is Harshil from India and this is my very first participation into GCI. BRL-CAD seemed fascinating to me and excited to get up with tasks.
Hi @Harshil Anand and welcome to BRLCAD
Welcome @Harshil Anand!
welcome @Harshil Anand -- what are you working on?
Last updated: Jan 09 2025 at 00:46 UTC