Stream: Google Code-in

Topic: appleseed


view this post on Zulip Sean (Dec 01 2017 at 15:01):

@Naseef er, starting new thread here ...

view this post on Zulip Naseef (Dec 01 2017 at 15:01):

Okay

view this post on Zulip Sean (Dec 01 2017 at 15:02):

for what it's worth, appleseed integration is one of the more important task sets in our list .. there's currently 4 coding tasks there, and once those are done we have a whole bunch more

view this post on Zulip Naseef (Dec 01 2017 at 15:03):

I'd like to all of those.

view this post on Zulip Naseef (Dec 01 2017 at 15:25):

I think I can claim the appleseed task again after current one is approved. Until that, I'm gonna work on getting appleseed to compile.

view this post on Zulip Sean (Dec 01 2017 at 15:26):

okay, no rush or worries if you want to work on other stuff too -- I'm just very excited about that one in particular as we've been working with the appleseed developers for a couple years on this project

view this post on Zulip Sean (Dec 01 2017 at 15:27):

and they just provided the hooks that we need last week

view this post on Zulip Sean (Dec 01 2017 at 15:27):

so this is very much real active development research / implementation

view this post on Zulip Naseef (Dec 01 2017 at 15:28):

I'm following this guide on building appleseed : https://github.com/appleseedhq/appleseed/wiki/Building-appleseed-on-Linux
Do you think it's out of date?

view this post on Zulip Sean (Dec 01 2017 at 15:29):

Do you think it's out of date?

view this post on Zulip Sean (Dec 01 2017 at 15:29):

Nope, Franz updated that just last week

view this post on Zulip Naseef (Dec 01 2017 at 15:30):

Okay I'm going to start again from the beginning.
Hope this time it'll compile correctly.

view this post on Zulip Naseef (Dec 01 2017 at 15:34):

pasted image Everything is perfect now...

view this post on Zulip Naseef (Dec 01 2017 at 15:40):

naseef@HIGHSPEED-PC:~$ cd /home/naseef/GCI2017/appleseed-tasks/
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks$ cd appleseed-master/
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master$ mkdir build
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master$ cd build
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master/build$ export APPLESEED_DEPENDENCIES=/home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master/build$ export CMAKE_INCLUDE_PATH=$APPLESEED_DEPENDENCIES/include
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master/build$ export CMAKE_LIBRARY_PATH=$APPLESEED_DEPENDENCIES/lib
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master/build$ export LD_LIBRARY_PATH=$APPLESEED_DEPENDENCIES/lib
naseef@HIGHSPEED-PC:~/GCI2017/appleseed-tasks/appleseed-master/build$ cmake \

-D WITH_DISNEY_MATERIAL=ON \
-D USE_STATIC_BOOST=OFF \
-D BOOST_INCLUDEDIR=$APPLESEED_DEPENDENCIES/include/boost_1_61_0 \
-D BOOST_LIBRARYDIR=$APPLESEED_DEPENDENCIES/lib/ \
-D Boost_ATOMIC_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_atomic-gcc48-mt-1_61.so.1.61.0 \
-D Boost_CHRONO_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_chrono-gcc48-mt-1_61.so.1.61.0 \
-D Boost_DATE_TIME_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_date_time-gcc48-mt-1_61.so.1.61.0 \
-D Boost_FILESYSTEM_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_filesystem-gcc48-mt-1_61.so.1.61.0 \
-D Boost_PYTHON_LIBRARY=$APPLESEED_DEPENDENCIES/lib/libboost_python-gcc48-mt-1_61.so.1.61.0 \
-D Boost_PYTHON_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_python-gcc48-mt-1_61.so.1.61.0 \
-D Boost_REGEX_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_regex-gcc48-mt-1_61.so.1.61.0 \
-D Boost_SYSTEM_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_system-gcc48-mt-1_61.so.1.61.0 \
-D Boost_THREAD_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_thread-gcc48-mt-1_61.so.1.61.0 \
-D Boost_WAVE_LIBRARY_RELEASE=$APPLESEED_DEPENDENCIES/lib/libboost_wave-gcc48-mt-1_61.so.1.61.0 \
-D USE_EXTERNAL_EXR=ON \
-D USE_EXTERNAL_SEEXPR=ON \
-D SEEXPREDITOR_INCLUDE_DIR=$APPLESEED_DEPENDENCIES/include \
-D SEEXPREDITOR_LIBRARY=$APPLESEED_DEPENDENCIES/lib/libSeExprEditor.so \
-D USE_EXTERNAL_OCIO=ON \
-D USE_EXTERNAL_OIIO=ON \
-D USE_EXTERNAL_OSL=ON \
-D OSL_COMPILER=$APPLESEED_DEPENDENCIES/bin/oslc \
-D OSL_MAKETX=$APPLESEED_DEPENDENCIES/bin/maketx \
-D OSL_QUERY_INFO=$APPLESEED_DEPENDENCIES/bin/oslinfo \
-D OPENIMAGEIO_OIIOTOOL=$APPLESEED_DEPENDENCIES/bin/oiiotool \
-D USE_EXTERNAL_ZLIB=ON \
-D USE_EXTERNAL_PNG=ON \
-D USE_EXTERNAL_XERCES=ON \
-D USE_SSE=ON \
-D USE_SSE42=ON \
-D CMAKE_BUILD_TYPE=Release \
..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Target architecture: x86_64
-- Using gcc 5.4.0 as the compiler
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- atomic
-- chrono
-- date_time
-- filesystem
-- regex
-- system
-- thread
-- wave
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PNG: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/lib/libpng.so (found version "1.6.28")
-- Found IMATH: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
-- Found OPENEXR: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
-- Found XERCES: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
-- Found OPENIMAGEIO: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
-- Found OPENCOLORIO: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/lib/libOpenColorIO.so
-- Found OSL: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
-- Found SEEXPR: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
-- Found SEEXPREDITOR: /home/naseef/GCI2017/appleseed-tasks/prebuilt-linux-deps/include
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:572 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/naseef/GCI2017/appleseed-tasks/appleseed-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/naseef/GCI2017/appleseed-tasks/appleseed-master/build/CMakeFiles/CMakeError.log".

Looks like I have to install PythonLibs. I think I'll be able to find it in apt.

view this post on Zulip Naseef (Dec 01 2017 at 15:48):

Should I install libpython3.0 or libpython3.5?

view this post on Zulip Naseef (Dec 01 2017 at 15:52):

or 2.7?

view this post on Zulip Naseef (Dec 01 2017 at 15:53):

Found it in CMakeList line 570

view this post on Zulip Naseef (Dec 01 2017 at 15:59):

W: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7-dev_2.7.12-1ubuntu0~16.04.1_amd64.deb
404 Not Found [IP: 91.189.88.149 80]

Is that a part of this challenge?

view this post on Zulip Naseef (Dec 01 2017 at 16:01):

I'll try again after an update.

view this post on Zulip Naseef (Dec 01 2017 at 16:07):

after 'apt update', It works!

view this post on Zulip Sean (Dec 01 2017 at 16:07):

woo hoo!

view this post on Zulip Naseef (Dec 01 2017 at 16:08):

I mean the 'apt install'

view this post on Zulip Naseef (Dec 01 2017 at 16:08):

next task is 'BUILDING APPLESEED'

view this post on Zulip Naseef (Dec 01 2017 at 16:12):

Apparently the cmake is successful this time.

view this post on Zulip Naseef (Dec 01 2017 at 16:12):

-- Found Qt4: /usr/bin/qmake (found version "4.8.7")
Qt QTOPENGL library not found.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/naseef/GCI2017/appleseed-tasks/appleseed-master/build

view this post on Zulip Naseef (Dec 01 2017 at 16:12):

Should I install the missing stuff and run CMake again?

view this post on Zulip Sean (Dec 01 2017 at 16:13):

do their docs indicate qt4 or qt5?

view this post on Zulip Naseef (Dec 01 2017 at 16:14):

You will need Qt 4.8 (or later in the 4.x series)

Important: appleseed will not build using Qt 5.x or later, you do need a 4.x version of Qt.

view this post on Zulip Sean (Dec 01 2017 at 16:14):

okay, that's good then

view this post on Zulip Naseef (Dec 01 2017 at 16:15):

I'm going to install Doxygen and QtOpenGL anyway. Just for satisfaction.

view this post on Zulip Naseef (Dec 01 2017 at 16:17):

If I didn't, for every problem coming next, I'll blame on myself for not install these.

view this post on Zulip Naseef (Dec 01 2017 at 16:21):

Well, I probably wouldn't need doxygen.

view this post on Zulip Sean (Dec 01 2017 at 16:21):

wouldn't hurt but probably not

view this post on Zulip Sean (Dec 01 2017 at 16:22):

if you make progress, you'll want to join appleseed's Slack channel so you can get help from their developers

view this post on Zulip Sean (Dec 01 2017 at 16:22):

that'll be better than reading doxygen

view this post on Zulip Naseef (Dec 01 2017 at 16:22):

I need a @appleseed mail to join

view this post on Zulip Naseef (Dec 01 2017 at 16:22):

finally executed 'make'

view this post on Zulip Naseef (Dec 01 2017 at 16:25):

my pc can't handle make and chrome at the same time, probably low memory. Currently it's 4% completed. Thanks for your help @Sean

view this post on Zulip Sean (Dec 01 2017 at 16:25):

I'll ask them about that -- I think if you post to their forum, they can invite you

view this post on Zulip Naseef (Dec 01 2017 at 17:00):

I'll try it.

view this post on Zulip Naseef (Dec 01 2017 at 17:01):

The build process is taking over my pc

view this post on Zulip Naseef (Dec 01 2017 at 17:01):

memory usage swings around 30% to 99%

view this post on Zulip Naseef (Dec 01 2017 at 17:02):

It's 40% done now.

view this post on Zulip Naseef (Dec 01 2017 at 17:04):

[ 48%] Generating ../../../sandbox/shaders/maya/as_maya_addMatrix.oso
Illegal instruction
src/appleseed.shaders/CMakeFiles/appleseed.shaders.dir/build.make:3752: recipe for target '../sandbox/shaders/maya/as_maya_addMatrix.oso' failed
make[2]: [../sandbox/shaders/maya/as_maya_addMatrix.oso] Error 132
CMakeFiles/Makefile2:228: recipe for target 'src/appleseed.shaders/CMakeFiles/appleseed.shaders.dir/all' failed
make[1]:
[src/appleseed.shaders/CMakeFiles/appleseed.shaders.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Was it a joke? It went 40% to 48% very fast generating *.oso files. and stopped here.

view this post on Zulip Naseef (Dec 01 2017 at 17:09):

LINE 3752: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/naseef/GCI2017/appleseed-tasks/appleseed-master/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_90) "Generating ../../../sandbox/shaders/maya/as_maya_addMatrix.oso"

view this post on Zulip Naseef (Dec 01 2017 at 17:11):

Now I have to run it again from the beginning :(

view this post on Zulip Sean (Dec 01 2017 at 17:12):

it may take a few attempts

view this post on Zulip Sean (Dec 01 2017 at 17:12):

if you run make VERBOSE=1 it should give a more detailed message about what it ran and what failed

view this post on Zulip Naseef (Dec 01 2017 at 17:13):

Okay, I'll try to run it again.

view this post on Zulip Sean (Dec 01 2017 at 17:13):

you don't need to start over, just run make VERBOSE=1 after it stops

view this post on Zulip Sean (Dec 01 2017 at 17:13):

it will pick up where it stopped

view this post on Zulip Sean (Dec 01 2017 at 17:14):

verbose mode produces a LOT of output, so you don't usually want to run that from a beginning of a compile

view this post on Zulip Naseef (Dec 01 2017 at 17:14):

That's what I'm going to do, The console windows was still open.

view this post on Zulip Naseef (Dec 01 2017 at 17:15):

I wonder if anyone ever built appleseed on Ubuntu 16.04 :thinking_face:

view this post on Zulip Sean (Dec 01 2017 at 17:16):

naseef, you can request an invite here: https://slackin-pohcdrcgcs.now.sh

view this post on Zulip Naseef (Dec 01 2017 at 17:17):

[ 41%] Generating ../../../sandbox/shaders/maya/as_maya_addMatrix.oso
cd /home/naseef/GCI2017/appleseed-tasks/appleseed-master/build/src/appleseed.shaders && /usr/bin/cmake -E make_directory /home/naseef/GCI2017/appleseed-tasks/appleseed-master/sandbox/shaders/maya
cd /home/naseef/GCI2017/appleseed-tasks/appleseed-master/build/src/appleseed.shaders && ../../../sandbox/bin/oslc -O2 -DNDEBUG -I"/home/naseef/GCI2017/appleseed-tasks/appleseed-master/src/appleseed.shaders/include" -o /home/naseef/GCI2017/appleseed-tasks/appleseed-master/sandbox/shaders/maya/as_maya_addMatrix.oso /home/naseef/GCI2017/appleseed-tasks/appleseed-master/src/appleseed.shaders/src/maya/as_maya_addMatrix.osl
Illegal instruction

The same error again!

view this post on Zulip Naseef (Dec 01 2017 at 17:17):

kind of*

view this post on Zulip Naseef (Dec 01 2017 at 17:18):

I'll ask the appleseed guys over slack.

view this post on Zulip Sean (Dec 01 2017 at 17:19):

ouch

view this post on Zulip Naseef (Dec 01 2017 at 17:19):

maybe I should do it from the beginning again.

view this post on Zulip Sean (Dec 01 2017 at 17:19):

no

view this post on Zulip Naseef (Dec 01 2017 at 17:20):

It just takes 30 mins to come to this point.

view this post on Zulip Sean (Dec 01 2017 at 17:20):

so first rule of development, nothing is black magic .. starting over without changing anything shouldn't result in a change

view this post on Zulip Sean (Dec 01 2017 at 17:20):

that's an illegal instruction

view this post on Zulip Sean (Dec 01 2017 at 17:21):

that usually means some sort of compiler incompatibility

view this post on Zulip Naseef (Dec 01 2017 at 17:21):

GCC?

view this post on Zulip Naseef (Dec 01 2017 at 17:21):

update gcc?

view this post on Zulip Sean (Dec 01 2017 at 17:21):

so that could be the issue -- what did their build instructions say

view this post on Zulip Sean (Dec 01 2017 at 17:21):

they may require compiling with clang

view this post on Zulip Sean (Dec 01 2017 at 17:21):

or a newer version of gcc

view this post on Zulip Naseef (Dec 01 2017 at 17:21):

I just ran make.

view this post on Zulip Sean (Dec 01 2017 at 17:22):

so you didn't follow the instructions and it didn't work? :)

view this post on Zulip Naseef (Dec 01 2017 at 17:22):

4.8

view this post on Zulip Sean (Dec 01 2017 at 17:22):

look for build instructions

view this post on Zulip Naseef (Dec 01 2017 at 17:23):

It said 4.8 and I have 5.4

view this post on Zulip Naseef (Dec 01 2017 at 17:23):

So I thought it'll work.

view this post on Zulip Sean (Dec 01 2017 at 17:23):

request your invite and join their #dev

view this post on Zulip Naseef (Dec 01 2017 at 17:24):

Creating Account now.

view this post on Zulip Naseef (Dec 01 2017 at 17:24):

do I really have to read "User Terms of Service"?

view this post on Zulip Mitesh (Dec 04 2017 at 07:44):

hi everyone
i am facing one issue in the first task of appleseed and brl cad:

i used this to make an .obj file.
$ g-obj -o sample.obj sample.g sample_object

when i import it in appleseed studio and started rendering i got only pink screen and no object....

is there any mistake in my steps?

thank you

view this post on Zulip Naseef (Dec 04 2017 at 11:17):

I setup the scene with blenderseed. franz helped me.
pasted image

view this post on Zulip Mitesh (Dec 04 2017 at 12:23):

Ya he asked me to take help from you...thanks buddy,

view this post on Zulip Mitesh (Dec 05 2017 at 11:13):

can you tell me how to setup blenderseed...i have installed blender

view this post on Zulip Sean (Dec 05 2017 at 18:55):

It’s fine to use blenderseed but that is not a solution relevant to any of the GCI tasks ...

view this post on Zulip Sean (Dec 05 2017 at 18:56):

For the first task for example, that’s more about export and import knowing the minimal of both so you can do the next tasks

view this post on Zulip Sean (Dec 05 2017 at 18:57):

The following tasks can all be done with that simple sphere import wh ch doesnt require blenderseed

view this post on Zulip Naseef (Dec 05 2017 at 19:01):

Yeah, Wait, I'll give you a link...

view this post on Zulip Naseef (Dec 05 2017 at 19:01):

Are you getting my messages?

view this post on Zulip Naseef (Dec 05 2017 at 19:01):

Looks like there is a network error.

view this post on Zulip Naseef (Dec 05 2017 at 19:02):

Oh yeah, There was a network error.

view this post on Zulip Mitesh (Dec 10 2017 at 15:49):

I am on appleseed task2# and I am trying to run this on visual studio:
http://brlcad.org/wiki/Example_Application

but I am getting these errors. Can you please help me out...errortask2.PNG

view this post on Zulip Mitesh (Dec 10 2017 at 15:54):

I did this to include header files of brlcad:-Capture1.PNG
Is this correct?

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 16:05):

Hmm, the first thing I'm seeing is that you created a C++ file from the example application. Although C code can usually be easily transferred to C++ it's not guaranteed. There are small differences in the conventions.
Therefore, how does it behave when you compile it as C (Source.c or rtexample.c)?

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 16:07):

And naturally, you need to set-up the BRL-CAD environment in your Visual Studio project with include and library folder etc..

view this post on Zulip Mitesh (Dec 10 2017 at 16:12):

ok..
for setting up environment I did this:
project menu--> Project properties ---> c/c++ ---> Additional include directories---> Added include and libraries folder of brlcad

is it ok?

view this post on Zulip Mitesh (Dec 10 2017 at 16:13):

environment.PNG

view this post on Zulip Mitesh (Dec 10 2017 at 16:15):

also i change the extension from .cpp to .c

view this post on Zulip Mitesh (Dec 10 2017 at 16:21):

From the above settings I am getting this:LNK.PNG

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 16:27):

ok..
for setting up environment I did this:
project menu--> Project properties ---> c/c++ ---> Additional include directories---> Added include and libraries folder of brlcad

is it ok?

I think the BRL-CAD include directory is H:\brlcad_install\include\brlcad which means that the additional include directories are

H:\brlcad_install\lib is not an include directory. This folder needs to be set in "Linker" as the directory where it should search for additional libraries.

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 16:28):

In addition, you have to set in "Linker" the BRL-CAD libraries libbu, libbn, librt, and some more.

view this post on Zulip Mitesh (Dec 10 2017 at 16:43):

I have added the lib folder to "linker additional library directories"
but can you please tell me how to set in linker libraries libbu, libbn, libbrt etc.
Should it be added in same "linker additional library directories"

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 16:54):

No. There should be a simple "additional libraries" or similar somewhere.

view this post on Zulip Mitesh (Dec 10 2017 at 16:56):

additional dependencies?

view this post on Zulip Mitesh (Dec 10 2017 at 16:57):

addlibraries.PNG

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 17:14):

Looks good.

view this post on Zulip Mitesh (Dec 10 2017 at 17:16):

when I click to edit it I get this screenadd1.PNG

view this post on Zulip Mitesh (Dec 10 2017 at 17:17):

should I simply write "libbn.lib" and press enter or should I enter the file with its directory?

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 17:23):

You shouldn't add the path (directory) here. You already set it in the other dialog field.

view this post on Zulip Mitesh (Dec 10 2017 at 17:24):

okk...thank you so much...will update he result after I make changes:).

view this post on Zulip Mitesh (Dec 10 2017 at 17:43):

notfound.PNG
got this error

view this post on Zulip Mahdi (Dec 10 2017 at 17:48):

That's probably because your executable can't locate your .dll file. Try moving the dll to the same directory as the .exe

view this post on Zulip Mitesh (Dec 10 2017 at 17:56):

Thanks there are no errors but only something like this:
empty.PNG

view this post on Zulip Mitesh (Dec 10 2017 at 17:58):

okk gotit...the ray is in model.g...right?

view this post on Zulip Mitesh (Dec 10 2017 at 18:04):

wait there is no model.g....

view this post on Zulip Mitesh (Dec 10 2017 at 18:14):

something's wrong ?

view this post on Zulip Mitesh (Dec 10 2017 at 18:16):

I should also place a .g with altleast one obj file with the .exe file.
Am I right or wrong?

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 18:26):

In the project setting there is a "Debug" entry. There you can set the arguments. Set a BRL-CSAD geometry .g file there, and make sure that the program will find it.

view this post on Zulip Mitesh (Dec 10 2017 at 18:34):

you mean command arguements?Commandarg.PNG

view this post on Zulip Daniel Rossberg (Dec 10 2017 at 18:52):

Yes.

view this post on Zulip Jeff Sieu (Dec 11 2017 at 05:31):

I'm getting this error, is it something to do with my computer? pasted image

view this post on Zulip Jeff Sieu (Dec 11 2017 at 05:51):

ok i think its my computer's problem

view this post on Zulip Mitesh (Dec 11 2017 at 08:31):

i have added spere.g in debugging--->command arguments but I am still getting thisempty.PNG

view this post on Zulip Mitesh (Dec 11 2017 at 08:35):

(deleted)

view this post on Zulip Mitesh (Dec 11 2017 at 12:52):

Can you please tell me wh

i have added spere.g in debugging--->command arguments but I am still getting thisempty.PNG

at should I do?

view this post on Zulip Mitesh (Dec 11 2017 at 13:13):

I got something....
when i did this:-something.png

view this post on Zulip Mitesh (Dec 11 2017 at 13:14):

i got this:-something1.png

view this post on Zulip Mitesh (Dec 11 2017 at 13:15):

Please tell me where am I making mistake.

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 13:25):

You have to set there only the arguments, not the program itself. And, make sure the program can find the given .g file.

view this post on Zulip Mitesh (Dec 11 2017 at 13:26):

when i add only "sphere.g" in the command argument i get only this statement "usage: C:\....."
Can you pls tell me how to make sure that program can find the given .g file

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 13:28):

sphere.g has to be in the working directory of the program. Or, you could give the full path as parameter.

view this post on Zulip Mitesh (Dec 11 2017 at 13:31):

The "sphere.g" is in the working directory of program but i get the same thing:

view this post on Zulip Mitesh (Dec 11 2017 at 13:35):

Capture5.PNG

view this post on Zulip Mitesh (Dec 11 2017 at 13:39):

projectdir.PNG working.PNG

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 13:39):

OK, what else says the usage statement?

view this post on Zulip Mitesh (Dec 11 2017 at 13:41):

Sorry I didn't get you..Do you mean what other changes give usage statement?

view this post on Zulip Mitesh (Dec 11 2017 at 13:43):

if I add sphere.g at the end of $(TargetPath) in command tab I get the same statement

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 14:08):

What I meant was: What says the usage statement? Did you read it? What parameters expects the program?

view this post on Zulip Mitesh (Dec 11 2017 at 14:16):

Capture6.PNG

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 14:31):

And? Do you see any discrepancy between the required parameters and the parameter you gave?

... Sorry, the model.g is in the usage statement.

view this post on Zulip Mitesh (Dec 11 2017 at 15:47):

Capture7.PNG capture8.png
What I think is that rtip must not be null and for that there must be some value for argv[1] and title...
am i right?

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 15:49):

How does this answer my question?

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 15:50):

What is the minimum number of parameters the program requires?

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 15:51):

In Capture6.PNG you marked some lines, but have you read them?

view this post on Zulip Mitesh (Dec 11 2017 at 15:54):

okk its 2

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 15:55):

Right. One is the file name, and the other one(s)?

view this post on Zulip Mitesh (Dec 11 2017 at 15:55):

so its should be a .g as well as .obj file? right?

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 15:57):

No. What are the objects in a BRL-CAD database?

view this post on Zulip Mitesh (Dec 11 2017 at 15:57):

sphere sph

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 15:59):

I don't know your geometry but if you have called your sphere "sphere" then that is it.

view this post on Zulip Mitesh (Dec 11 2017 at 16:00):

I have one question....we have already included the brlcad database so doesn't that mean that object is also included by default?

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 16:01):

There is no default object in a BRL-CAD database.

view this post on Zulip Mitesh (Dec 11 2017 at 16:02):

okk....so how should i add the object now?

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 16:02):

Usually you have many objects in a .g file, even more then one top object. And the investigation routines can be applied to lower level objects too.

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 16:03):

okk....so how should i add the object now?

Simply add its name as the second parameter.

view this post on Zulip Mitesh (Dec 11 2017 at 16:04):

okk

view this post on Zulip Mitesh (Dec 11 2017 at 16:06):

got it
result1.PNG
Thank you so much

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 16:08):

Always read the fine manual - or usage statement ;)

view this post on Zulip Mitesh (Dec 11 2017 at 16:08):

ya...I should have read that

view this post on Zulip Mitesh (Dec 11 2017 at 16:25):

can we see the ray that hits the geometry?

view this post on Zulip Mitesh (Dec 11 2017 at 17:23):

I tried to understand the examples from src/rt
These are not so easy to understand for me and I think it will take some time for me.
I think I should do the 3dmodelling tasks first.

view this post on Zulip Daniel Rossberg (Dec 11 2017 at 18:54):

can we see the ray that hits the geometry?

It depends on what you mean with "see". You could set a break point in the hit() function. Then the program execution will stop always when a ray hits the geometry.

view this post on Zulip Lucas Prieels (Dec 26 2017 at 00:57):

Hi! I've compiled the rtexample.c program and I see how to modify it but I don't know at all how to write an image... Can someone help me? Thanks!

view this post on Zulip Sean (Dec 27 2017 at 06:13):

Hi! I've compiled the rtexample.c program and I see how to modify it but I don't know at all how to write an image... Can someone help me? Thanks!

@Lucas Prieels so the example just fires one ray. You need to fire a grid of rays, and then store the result in an image array. It's then really easy to write that image data out as PPM data. You basically print a 3 line text header, and then a dump of the image array bytes. There is lots of examples on the web showing this.

view this post on Zulip caleb parks (Jan 05 2018 at 04:54):

I can't seem to get anything that is imported to render in appleseed.

view this post on Zulip Sean (Jan 05 2018 at 04:54):

you need to create a light source or create an ambient lighting source

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

this is an environment EDF

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

if you join the appleseed slack channel, they can help walk you through it

view this post on Zulip Mitesh (Jan 11 2018 at 03:15):

@everyone
Has anyone reached 5th task of appleseed

view this post on Zulip Lucas Prieels (Jan 11 2018 at 06:12):

Has anyone reached 5th task of appleseed

I think that if someone succeded the 5th task, the admins would have add a 6th one

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

Someone is just now working on it and ... nearly successful

view this post on Zulip Lucas Prieels (Jan 12 2018 at 16:44):

Is it you @Jeff Sieu ? :joy:

view this post on Zulip Lucas Prieels (Jan 12 2018 at 22:15):

For Appleseed #4, we basically just have to compile the sphereobject.cpp file using cmake and add a std::cout << something in the intersect function, right?

view this post on Zulip Sean (Jan 13 2018 at 05:28):

basically. it would be good if you customized it a bit but the main point is to figure out how their plugins work, how the build works, etc

view this post on Zulip Sean (Jan 13 2018 at 05:28):

it's a surprisingly easy task -- surprised more didn't do it

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:34):

This is really weird. I'm able to build the plugin.cpp file which has a RENDERER_LOG_INFO("%d", bu_parallel_id()); line. But when I try to load the appleseed project file in appleseed.studio, it gives me that same error: while defining object "sphere": invalid model "brlcad_object".

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:35):

If I have a line like struct application ap; in plugin.cpp though, the project does not give any error.

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:35):

So, somehow calling any functions from BRL-CAD gives problems

view this post on Zulip Sean (Jan 13 2018 at 05:37):

@Jeff Sieu that's because of a thing called dynamic loading

view this post on Zulip Sean (Jan 13 2018 at 05:37):

notice that you are not recompiling appleseed or brl-cad

view this post on Zulip Sean (Jan 13 2018 at 05:37):

you're just compiling your plugin

view this post on Zulip Sean (Jan 13 2018 at 05:38):

the way that works is appleseed has code that says "open this library, look for this function, run it"

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:38):

right

view this post on Zulip Sean (Jan 13 2018 at 05:38):

in the plugin, there's a specifically named function that essentially registers the rest of the functions

view this post on Zulip Sean (Jan 13 2018 at 05:39):

to compile the plugin, the compiler just needs to know the names of the functions you are calling

view this post on Zulip Sean (Jan 13 2018 at 05:40):

it doesn't need to actually need the functions themselves just yet ... not until the library is loaded

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:41):

does this mean that I'll need to load the library files from brl-cad as well?

view this post on Zulip Sean (Jan 13 2018 at 05:41):

when it tries to load the library, it sees that this is a library that calls a bunch of functions, one of them being bu_parallel_id() ... and since it doesn't have the definition of that function (or know where to find it), it ends up failing

view this post on Zulip Sean (Jan 13 2018 at 05:41):

sort of

view this post on Zulip Sean (Jan 13 2018 at 05:41):

when you build the plugin, you need to tell it that the plugin depends on that library

view this post on Zulip Sean (Jan 13 2018 at 05:41):

notice the line at the bottom of the CMakeLists.txt file

view this post on Zulip Sean (Jan 13 2018 at 05:42):

that's where it tells it that the plugin depends on the appleseed libraries

view this post on Zulip Sean (Jan 13 2018 at 05:42):

so the first thing to try is simply add the other libraries your using to that list

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:45):

ohh i see

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:47):

OOH IT WORKS!!

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:48):

Thank you so much @Sean !

view this post on Zulip Sean (Jan 13 2018 at 05:48):

woo hoo!

view this post on Zulip Sean (Jan 13 2018 at 05:48):

screenshot?

view this post on Zulip Sean (Jan 13 2018 at 05:49):

did you get my other comment about not needing to shoot a grid of rays?

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:51):

did you get my other comment about not needing to shoot a grid of rays?

Yeah, so if I'm not wrong, this task is about getting BRL-CAD objects to render in Appleseed, right?

view this post on Zulip Sean (Jan 13 2018 at 05:52):

unless that's just a crazy amount of additional work, it's to at least make progress in that direction

view this post on Zulip Sean (Jan 13 2018 at 05:52):

we can make more tasks to get there, but rendering in appleseed is indeed the goal

view this post on Zulip Sean (Jan 13 2018 at 05:53):

franz added those procedural plugin hooks for us to do exactly that

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:53):

screenshot?

Well, the project file does load now. I haven't got to actually making the ray-tracing stuff to work yet because I was so frustrated. But I think now I can try to actually get it to work. Maybe I can get it done by today...

view this post on Zulip Sean (Jan 13 2018 at 05:53):

submit what you have and I'll add a step 6

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:54):

Oh okay...

view this post on Zulip Sean (Jan 13 2018 at 05:54):

well after fixing the other issues mentioned

view this post on Zulip Sean (Jan 13 2018 at 05:54):

don't need to shoot a grid, need to prep during frame setup, etc

view this post on Zulip Sean (Jan 13 2018 at 05:55):

I don't think it will suddenly all work if you do that, but it is needed regardless

view this post on Zulip Lucas Prieels (Jan 13 2018 at 05:56):

it's a surprisingly easy task -- surprised more didn't do it

Actually, the third task was easy but I had a lot of problem because I had download Appleseed a few days before they submit a patch which made it work :)

view this post on Zulip Jeff Sieu (Jan 13 2018 at 05:56):

I was thinking that it would need some basic math to translate it into the right position, because the object may be translated in Appleseed as well, on top of any translation in the .g file

view this post on Zulip Jeff Sieu (Jan 13 2018 at 06:03):

submit what you have and I'll add a step 6

Submitted

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

Actually, the third task was easy but I had a lot of problem because I had download Appleseed a few days before they submit a patch which made it work :)

there were lots of things that could potentially go wrong .. that's why it was a task at all ;)

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

Help, trying to run rt_shootray in the appleseed plugin gives me this

Database title: Untitled BRL-CAD Databasert_shootray() resp=0x7f026f01db80 uninitialized, fixing it
rt_shootray() resp=0x7f026f01db80 uninitialized, fixing it
rt_shootray() resp=0x7f026f01db80 uninitialized, fixing it
rt_shootray() resp=0x7f026f01db80 uninitialized, fixing it
BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

Saving stack trace to appleseed.studio-12681-bomb.log
BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure
BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511


BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

*** Error in [1]    12681 segmentation fault (core dumped)  ../../../bin/Release/appleseed.studio

view this post on Zulip Mitesh (Jan 14 2018 at 07:22):

what does function BU_ASSERT does?

view this post on Zulip Jeff Sieu (Jan 14 2018 at 07:26):

Think it asserts that a boolean is true

view this post on Zulip Jeff Sieu (Jan 14 2018 at 07:27):

But I don't know why this doesn't work though. It's just a copy paste of the rt example program and yet I couldn't get it to work

view this post on Zulip Mitesh (Jan 14 2018 at 07:41):

rt example doesn't have function that prints such logs..maybe some other internal function..

view this post on Zulip Lucas Prieels (Jan 14 2018 at 09:54):

Hi! How is it possible to make the appleseed #3 program to take a .obj file with a name we specify while running?

view this post on Zulip Lucas Prieels (Jan 14 2018 at 11:27):

Hi! How is it possible to make the appleseed #3 program to take a .obj file with a name we specify while running?

Any idea @Jeff Sieu (I know you’ve done this task so I suppose you know how to do it)

view this post on Zulip Mitesh (Jan 14 2018 at 11:29):

i have one...take input of through gets(variable); and place that variable in the fuction

view this post on Zulip Jeff Sieu (Jan 14 2018 at 11:31):

What is appleseed #3 again

view this post on Zulip Rahil Malik (Jan 14 2018 at 11:32):

APPLESEED integration: Write a small C/C++ program in appleseed that renders an image (task #3 of 5)

view this post on Zulip Jeff Sieu (Jan 14 2018 at 11:33):

You simply make it read from an appleseed project file

view this post on Zulip Lucas Prieels (Jan 14 2018 at 12:19):

You simply make it read from an appleseed project file

Really? That’s enough? So I just take for example project.appleseed instead of scene.obj? I thought it was less easy :)

view this post on Zulip Jeff Sieu (Jan 14 2018 at 12:27):

Yeah

view this post on Zulip Mitesh (Jan 14 2018 at 14:00):

The fourth one is not as simple as it looks...simply adding cout<<""; won't work since sphereobject builds a plugin and not .exe and we cannot execute a plugin..

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

Also, I was wondering how rt_shootray can be done in the plugin though. Seems like it's asynchronous but intersect() requires the output right away (in the case of bool intersect(), it needs to know whether it's a hit or a miss right away).

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

what is the role of intersect in plugin?

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

"Compute the intersection between a ray expressed in object space and the surface of this object and return detailed intersection results."

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

and this detailed results go where?

view this post on Zulip Mitesh (Jan 14 2018 at 14:09):

I mean where are they stored?

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

IntersectionResult& result

view this post on Zulip Mitesh (Jan 14 2018 at 14:09):

I mean why do we want intersect()?

view this post on Zulip Mitesh (Jan 14 2018 at 14:11):

just to check whether the ray thrown intersects or not?

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

So that you'd know how to "render" the object?

view this post on Zulip Mitesh (Jan 14 2018 at 14:12):

what i thought was that if we use rt_shootray() instead of intersection?

view this post on Zulip Mitesh (Jan 14 2018 at 14:13):

am i going correct?

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

No

view this post on Zulip Mitesh (Jan 14 2018 at 14:16):

why??

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

By right, Appleseed should call intersect() and it's our job to replace whatever is inside intersect with the results from BRL-CAD's raytrace.

view this post on Zulip Mitesh (Jan 14 2018 at 14:17):

okk...sorry...mybad...mybad

view this post on Zulip Mitesh (Jan 14 2018 at 14:24):

hmm...now it seems..pretty hard

view this post on Zulip Mitesh (Jan 14 2018 at 14:41):

bingo...task 4 done..appleseed...onto 5

view this post on Zulip Rahil Malik (Jan 14 2018 at 14:45):

BINGO !!!!

view this post on Zulip Mitesh (Jan 14 2018 at 14:46):

thanks

view this post on Zulip Mitesh (Jan 15 2018 at 01:12):

In task 5 the rt+shootray() should be called but the function should shoot ray on which file?

view this post on Zulip Mitesh (Jan 15 2018 at 09:02):

i have submitted #4...now I am trying for #5....when I added a new source I got this...pls help me outstdiint.PNG

view this post on Zulip Mitesh (Jan 15 2018 at 09:46):

I have added all the libraries and header files correctly...because when i build it in other visual studio project individually it was built successfully.

view this post on Zulip Mitesh (Jan 15 2018 at 10:07):

okk...got the solution..there are supoose to be changes in c/c++ settings

view this post on Zulip Naseef (Jan 15 2018 at 10:08):

Can't Visual Studio open a CMake project?

view this post on Zulip Mitesh (Jan 15 2018 at 10:18):

Visual studio can open the .sln file generated from cmake

view this post on Zulip Mitesh (Jan 15 2018 at 11:47):

How to call main() of another .c file in a dll file..both enclosed in same project in visual studio

view this post on Zulip Mitesh (Jan 15 2018 at 15:56):

how to initialize argc and argv without int main()?

view this post on Zulip Mitesh (Jan 15 2018 at 16:14):

I want to claim appleseed#5 befor 17:00 utc....but my #4 is in submission...Pls tell me what should i do?

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:16):

I want to claim appleseed#5 befor 17:00 utc....but my #4 is in submission...Pls tell me what should i do?

I think there's nothing to do, Just wait and pray :) I also had a pending task and I abandoned it to be sure I can work on my CSS file for the last two days

view this post on Zulip Rahil Malik (Jan 15 2018 at 16:17):

same here, i have 4 tasks ready in advance and even i can't do anythnig about it

view this post on Zulip Jeff Sieu (Jan 15 2018 at 16:18):

Wow that's pretty sick, which kinda tasks?

view this post on Zulip Rahil Malik (Jan 15 2018 at 16:18):

modelling(mainly), thank god my priority task didn't go useless

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:20):

I had also prepared tasks in advance, I stopped to do it one week ago but I still have Appleseed #4 almost done, just a little bug to find, the two annot bugs I tried to find for hours (which I finally didn't found but I think I'm close) and the BRL-CAD modeling task which I had done the half

view this post on Zulip Rahil Malik (Jan 15 2018 at 16:20):

you knew what was coming :laughing:

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:21):

But there are rules so :) I'm still going to work on appleseed because I like it even if it doesn't matter for the GCI
Well, you too

view this post on Zulip Jeff Sieu (Jan 15 2018 at 16:21):

I had 2 tasks in advance, but they were in-progress and there wasn't enough time before the last task could be claimed so :/

view this post on Zulip Mitesh (Jan 15 2018 at 16:22):

seems like all are facing same issues...

view this post on Zulip Mitesh (Jan 15 2018 at 16:22):

comming back to topic....

view this post on Zulip Mitesh (Jan 15 2018 at 16:22):

what should i do if i don't want argc and argv?

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:23):

Why do you want to initialize them without main?

view this post on Zulip Mitesh (Jan 15 2018 at 16:24):

in sphereobject there is no main() function...it gives dll as output...but to integrate it with rtexample i need to exclude main()

view this post on Zulip Mitesh (Jan 15 2018 at 16:25):

any ideas?

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:26):

Is it possible for the plugin to print things in another file using fstream?

view this post on Zulip Mitesh (Jan 15 2018 at 16:27):

yes

view this post on Zulip Jeff Sieu (Jan 15 2018 at 16:28):

I think appleseed handles argv somewhere, but it may not be exposed to the plugin

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:28):

Sorry, forget what I was saying that can't work

view this post on Zulip Jeff Sieu (Jan 15 2018 at 16:28):

Regardless, you can simply hardcode in a database name and object name, instead of receiving them as argc and argv parameters.

view this post on Zulip Mitesh (Jan 15 2018 at 16:31):

okk...gotcha

view this post on Zulip Mitesh (Jan 15 2018 at 16:31):

thanks

view this post on Zulip Mitesh (Jan 15 2018 at 16:38):

we need argc and argv just to check whether the input databse and objects are correct or wrong...right?

view this post on Zulip Jeff Sieu (Jan 15 2018 at 16:46):

argc and argv are used as input into the rtexample program to tell it the path of the BRL-CAD database in question and the object(s) in it. In your case, these are simply unneeded as you can simply hardcode in the values as strings.

view this post on Zulip Mitesh (Jan 15 2018 at 16:48):

ok...so where there is argv or argc i should replace it with the name of database and object file

view this post on Zulip Jeff Sieu (Jan 15 2018 at 16:48):

Yes.

view this post on Zulip Mitesh (Jan 15 2018 at 16:49):

instead of argc object and instead of argv database?

view this post on Zulip Mitesh (Jan 15 2018 at 16:53):

sorry...argv[1]=database name

view this post on Zulip Lucas Prieels (Jan 15 2018 at 16:59):

Has your 4th been accepted?

view this post on Zulip Mitesh (Jan 15 2018 at 16:59):

no it's still in submission

view this post on Zulip Mitesh (Jan 15 2018 at 16:59):

last minute

view this post on Zulip Lucas Prieels (Jan 15 2018 at 17:00):

Too bad...

view this post on Zulip Mitesh (Jan 15 2018 at 17:00):

time's up

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

Hi I'm getting this error when trying to run the plugin, even after the initialisation of ap->a_resource: something about ptbl being a bad pointer.

Context: everything from rtexample.c is ran in the correct order in the appleseed plugin file. Used to get an error for something like null resource pointer, but fixed that by initialising it at first. Now I run into this problem. This error also only appears when rt_shootray is called.

dbpath: /home/jeff/Documents/Appleseed5-6/sphere.g objectpath: /home/jeff/Documents/Appleseed5-6/sphere.g ERROR: bad pointer 0x7f20f6491320: s/b struct partition(x87687681), was pt_hd magic(x87687680), file /home/jeff/Documents/brlcad/src/librt/bool.c, line 1490 ERROR: bad pointer 0x7f20f6491370: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f6491320: s/b struct partition(x87687681), was pt_hd magic(x87687680), file /home/jeff/Documents/brlcad/src/librt/bool.c, line 1490 ERROR: bad pointer 0x7f20f6491370: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 Saving stack trace to ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 appleseed.studio-26692-bomb.log ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 ERROR: bad pointer 0x7f20f64912f0: s/b bu_ptbl(x7074626c), was Zero_Magic_Number(x0), file /home/jeff/Documents/brlcad/src/libbu/ptbl.c, line 51 [1] 26692 segmentation fault (core dumped) ../../../bin/Release/appleseed.studio

view this post on Zulip Mitesh (Jan 16 2018 at 09:33):

This is really weird. I'm able to build the plugin.cpp file which has a RENDERER_LOG_INFO("%d", bu_parallel_id()); line. But when I try to load the appleseed project file in appleseed.studio, it gives me that same error: while defining object "sphere": invalid model "brlcad_object".

got same issue....

view this post on Zulip Jeff Sieu (Jan 16 2018 at 09:34):

Help, trying to run rt_shootray in the appleseed plugin gives me this

Database title: Untitled BRL-CAD Databasert_shootray() resp=0x7f026f01db80 uninitialized, fixing it
rt_shootray() resp=0x7f026f01db80 uninitialized, fixing it
rt_shootray() resp=0x7f026f01db80 uninitialized, fixing it
rt_shootray() resp=0x7f026f01db80 uninitialized, fixing it
BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

Saving stack trace to appleseed.studio-12681-bomb.log
BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure
BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

BU_ASSERT((void *)((&solidbits->l)->forw) != (void *)NULL), failed, file /home/jeff/Documents/brlcad/src/librt/shoot.c, line 1511

BU_ASSERT failure

BU_ASSERT failure

*** Error in [1] 12681 segmentation fault (core dumped) ../../../bin/Release/appleseed.studio


Unfortunately still stuck on this

view this post on Zulip Mitesh (Jan 16 2018 at 11:58):

sorry ..still working

view this post on Zulip Mitesh (Jan 16 2018 at 12:03):

i am still getting the same error...even after i changed cmake.txt

view this post on Zulip Mitesh (Jan 16 2018 at 12:31):

I mean cmakelists.txt

view this post on Zulip Mitesh (Jan 16 2018 at 12:53):

int rtshoot()
{
int argc = 3;
const char **argv;
const char* n_argv[] = { "sphereobject","sphere.g","sph" };
argv = n_argv;

/* Every application needs one of these.  The "application"
    * structure carries information about how the ray-casting should
    * be performed.  Defined in the raytrace.h header.
    */


    struct application  ap;

    /* The "raytrace instance" structure contains definitions for
    * librt which are specific to the particular model being
    * processed.  One copy exists for each model.  Defined in
    * the raytrace.h header and is returned by rt_dirbuild().
    */
    static struct rt_i *rtip;

    /* optional parameter to rt_dirbuild() that can be used to capture
    * a title if the geometry database has one set.
    */
    char title[1024] = { 0 };



    /* Load the specified geometry database (i.e., a ".g" file).
    * rt_dirbuild() returns an "instance" pointer which describes the
    * database to be raytraced.  It also gives you back the title
    * string if you provide a buffer.  This builds a directory of the
    * geometry (i.e., a table of contents) in the file.
    */
    rtip = rt_dirbuild(argv[1], title, sizeof(title));
    if (rtip == RTI_NULL) {
        bu_exit(2, "Building the database directory for [%s] FAILED\n", argv[1]);
    }

    /* Display the geometry database title obtained during
    * rt_dirbuild if a title is set.
    */
    if (title[0]) {
        bu_log("Title:\n%s\n", title);
    }

    /* Walk the geometry trees.  Here you identify any objects in the
    * database that you want included in the ray trace by iterating
    * of the object names that were specified on the command-line.
    */
    while (argc > 2) {
        if (rt_gettree(rtip, argv[2]) < 0)
            bu_log("Loading the geometry for [%s] FAILED\n", argv[2]);
        argc--;
        argv++;
    }

    /* This next call gets the database ready for ray tracing.  This
    * causes some values to be precomputed, sets up space
    * partitioning, computes bounding volumes, etc.
    */
    rt_prep_parallel(rtip, 1);

    /* initialize all values in application structure to zero */
    RT_APPLICATION_INIT(&ap);

    /* your application uses the raytrace instance containing the
    * geometry we loaded.  this describes what we're shooting at.
    */
    ap.a_rt_i = rtip;

    /* stop at the first point of intersection or shoot all the way
    * through (defaults to 0 to shoot all the way through).
    */
    ap.a_onehit = 0;

    /* Set the ray start point and direction rt_shootray() uses these
    * two to determine what ray to fire.  In this case we simply
    * shoot down the z axis toward the origin from 10 meters away.
    *
    * It's worth nothing that librt assumes units of millimeters.
    * All geometry is stored as millimeters regardless of the units
    * set during editing.  There are libbu routines for performing
    * unit conversions if desired.
    */
    VSET(ap.a_ray.r_pt, 0.0, 0.0, 10000.0);
    VSET(ap.a_ray.r_dir, 0.0, 0.0, -1.0);

    /* Simple debug printing */
    //VPRINT("Pnt", ap.a_ray.r_pt);
    //VPRINT("Dir", ap.a_ray.r_dir);

    /* This is what callback to perform on a hit. */
    ap.a_hit = hit;

    /* This is what callback to perform on a miss. */
    ap.a_miss = miss;

    /* Shoot the ray. */
    (void)rt_shootray(&ap);

    /* A real application would probably set up another ray and fire
    * again or do something a lot more complex in the callbacks.
    */

    return 0;

}
added this function and called it in intersect function()....am I wrong anywhere?

view this post on Zulip Mitesh (Jan 16 2018 at 16:28):

rtip = rt_dirbuild("sphere.g", title, sizeof(title));
there's something wrong in this line..

view this post on Zulip Mitesh (Jan 16 2018 at 16:29):

i have used argc=3
argv[1]="sphere.g";
argv[2]="sph";

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

infact replaced argv[1] with sphere.g and argv[2] with sph completely....in the source code

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

in which folder should I place all the .dll files?

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

@everyone any ideas?

view this post on Zulip Armin (LordOfBikes) (Jan 17 2018 at 13:15):

@Mitesh, I'm not involved with appleseed, but if you are in doubt, it should work, when you put them into the same folder with the executable

view this post on Zulip Mitesh (Jan 17 2018 at 13:50):

Thank you @LordOfBikes . . but the program generates a plugin....so should I place it in the same folder as that of plugin?

view this post on Zulip Armin (LordOfBikes) (Jan 17 2018 at 14:07):

I think you can create plugins folder in your application folder for it or use QCoreApplication::addLibraryPath().
See http://doc.qt.io/qt-5/plugins-howto.html#locating-plugins for details.

view this post on Zulip Mitesh (Jan 17 2018 at 14:08):

thank you..i will look at it

view this post on Zulip Jeff Sieu (Jan 17 2018 at 14:47):

Actually, I think you can set APPLESEED_SEARCHPATH=<dll folder>

view this post on Zulip Mitesh (Jan 17 2018 at 16:43):

@Jeff Sieu i tried setting the path...but still got the same issue...

view this post on Zulip Mitesh (Jan 17 2018 at 16:43):

@LordOfBikes is there any other way...actually i have never used QT

view this post on Zulip Mitesh (Jan 17 2018 at 16:54):

sameissue.PNG
I get this whenever I add the "rtip=rt_dirbuild("sphere.g", title, sizeof(title));" line

view this post on Zulip Mitesh (Jan 17 2018 at 16:55):

if I remove it, it works

view this post on Zulip Mitesh (Jan 17 2018 at 18:31):

any ideas?

view this post on Zulip Armin (LordOfBikes) (Jan 17 2018 at 20:28):

@Mitesh, best is you copy/paste the whole log output into a file and attach it here

view this post on Zulip Mitesh (Jan 18 2018 at 01:42):

here are the logs of the sphereobject
appleseedlog.txt

view this post on Zulip Daniel Rossberg (Jan 18 2018 at 10:08):

I don't think that adding H:\BRLCAD7.26.0\bin to APPLESEED_SEARCHPATH was a good idea, but you may tray to add this directory to your PATH environment variable. This way, every program can find the BRL-CAD DLLs.

view this post on Zulip Daniel Rossberg (Jan 18 2018 at 10:15):

Or, you could give the brlcad.dll a try: https://sourceforge.net/projects/brlcad/files/BRL-CAD%20Runtime%20Libraries/7.26.0/
Download the devel package there. Even if its strong point is the C++ interface (which would be a choice here too) it exports some C functions as well: https://sourceforge.net/p/brlcad/code/HEAD/tree/brlcad/trunk/misc/win32-msvc/Dll/brlcad.def

view this post on Zulip Daniel Rossberg (Jan 18 2018 at 10:18):

@Jeff Sieu If Appleseed really runs in parallel the semaphores in BRL-CAD have to be activated: bu_semaphore_init(RT_SEM_LAST)
BRLCAD::PrepareForMultithreading() in the C++ interface.

view this post on Zulip Mitesh (Jan 19 2018 at 02:48):

thanks @Daniel Rossberg but when I added the folder to the environment and also added brlcad.dll...I got the same issue....
applelogs.txt

view this post on Zulip Mitesh (Jan 19 2018 at 02:48):

i added brlcad.dll to the bin folder

view this post on Zulip Naseef (Jan 19 2018 at 09:39):

but it's a lib

view this post on Zulip Mitesh (Jan 19 2018 at 09:40):

it has both lib and dll....added lib to lib folder and .dll to bin folder

view this post on Zulip Naseef (Jan 19 2018 at 09:41):

.dll is also a library

view this post on Zulip Naseef (Jan 19 2018 at 09:42):

Dynamic Link Library!

view this post on Zulip Mitesh (Jan 19 2018 at 09:43):

but all the dll files are placed in BIN folder and libs are placed in lib folder... .dll is a plugin

view this post on Zulip Daniel Rossberg (Jan 19 2018 at 09:44):

i added brlcad.dll to the bin folder

You have to link your program to this DLL to, instead of linking it to the standard BRL-CAD lib~ libraries.

view this post on Zulip Naseef (Jan 19 2018 at 09:44):

You're right. That's how it works in Windows.

view this post on Zulip Mitesh (Jan 19 2018 at 09:45):

okk...got that

view this post on Zulip Mitesh (Jan 23 2018 at 08:51):

Hi everyone. I tried linking it with only brlcad.dll...but again got the same error..."while defining object sphere....."

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 17:01):

@Jeffrey Liu For what I understood, you are looking for a way to write an own application using BRL-CAD libraries?

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 17:23):

@Daniel Rossberg something like that - I'm working on the 5th appleseed task, which requires me to call rt_shootray() from an appleseed plugin.

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 17:29):

I recommend to use another library, which already uses librt, as template. This could be done in BRL-CAD's main repository. There, you can use a copy of such a library, name it libappleseed, remove all it's source files (in the copy), put your own files in, and adapt the CMakelist.txts.

Another possibility is to put it in rt^3 (do the experimental features compilation task first). There, you can copy src/coreInterface (e.g. to src/appleseed) and use this as template for your own work.

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 17:45):

Ah, thank you for the advice! I was only thinking about configuring BRLCAD externally and not internally. However, in this case, I would then need to somehow link the appleseed libraries then, right?

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 17:47):

Yes, this should be possible in the usual way. I assume, you have already a configuration using the appleseed libraries.

view this post on Zulip Mayank Goyal (Dec 14 2019 at 17:53):

Before starting,I wanted to know what basically we have to do in Appleseed task #2

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 18:00):

#2 refers to this example: https://brlcad.org/wiki/Example_Application
It recommends to take this one and change it such that it shoots a grid of rays. Build it and you are essentially done.

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 18:04):

Yes, this should be possible in the usual way. I assume, you have already a configuration using the appleseed libraries.

I do, but the configuration for the appleseed libraries is also internal, so I think I might be facing the same difficulty one way or the other.

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 18:05):

Which OS are you working on?

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 18:05):

Windows

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 18:07):

For now, I think I'll try linking the BRLCAD libraries into appleseed because starseeker already provided me with some references to follow.

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 18:10):

For Windows, there is a "dirty" trick to link own applications with BRL-CAD: https://sourceforge.net/projects/brlcad/files/BRL-CAD%20Runtime%20Libraries/7.26.0/brlcad-7.26.0_dll_devel.zip/download
https://brlcad.org/wiki/BRL-CAD%27s_core_C%2B%2B_interface

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 18:12):

Oh wow, thanks for sharing this! I hadn't come across this beforehand. If I'm not mistaken, is this basically a dll that I can place inside of the proper directory, allowing for me to call librt functions?

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 18:14):

Some librt functions, but mainly the C++ interface methods. They support the ray-trace too.

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 18:14):

Thank you, I'll try working with this first then.

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 18:31):

@Daniel Rossberg Would something like this be correct?
include_directories (C:\Users\JeffL\Downloads\brlcad-7.26.0_dll_devel\include) target_link_libraries(brlcad)
Sorry, I'm not very familiar with CMake.

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 18:32):

This doesn't look wrong. Visual Studio will tell you if it's indeed correct.

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 19:03):

Alright, so I'm getting this error now when trying to compile a test:
2>LINK : fatal error LNK1104: cannot open file 'brlcad.lib' 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(720,5): error MSB6006: "link.exe" exited with code 1104.
I found the location of brlcad.lib, but I don't know how to link it through CMake.

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 19:05):

In the project settings in Visual Studio there is a setting for additional library directories.

view this post on Zulip Sumagna Das (Dec 14 2019 at 19:06):

yea there is a setting

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 19:07):

Alright, I'll do it manually for now.

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 19:07):

Well the build worked... now time to test it

view this post on Zulip Daniel Rossberg (Dec 14 2019 at 19:11):

BTW, by the same way you can link with librt etc..

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 19:13):

Oh wait, so if I just link with librt through VS, do I still need to use the brlcad.dll/lib and everything? Or could I just link to the src/librt and then work from there?

view this post on Zulip Jeffrey Liu (Dec 14 2019 at 20:01):

I asked starseeker about how I might do this on the other Appleseed channel - please let me know if there would be something wrong with this method.

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:51):

has anyone built appleseed from source?

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 15:55):

just trying

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:55):

what? building appleseed?

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 15:56):

yes

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:56):

it now points to osl(open shading language) which is pointing to openimageio

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:56):

by pointing, i mean pointing out errors

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 15:57):

Which OS are you working with?

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:57):

linux

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:57):

osl needs oiio 2.0 but apt offers 1.x something version

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 15:58):

apt install openimageio-dev openimageio-tools

view this post on Zulip Sumagna Das (Dec 21 2019 at 15:59):

it says unable to locate package

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:00):

the package is libopenimageio-dev but it offers 1.7 version

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 16:02):

On Debian buster it is 2.0.5.

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:03):

you are working on debian?

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 16:03):

yes

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:03):

does debian use dpkg?

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:03):

you are working on debian?

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:03):

does debian use dpkg?

view this post on Zulip Himanshu (Dec 21 2019 at 16:05):

does debian use dpkg?

yeah like sudo dpkg install ....

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 16:05):

Yes, it uses this too.

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:05):

but in ubuntu its different

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:05):

dpkg -i or --install

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 16:06):

On Debian it's rather apt install ~
Ubuntu is Debian based.

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:06):

yea

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:11):

btw, if i upgrade from 18.04 to 19.04, will it do anything to my data or the a data on the windows partition of this laptop?

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:12):

i know its a LTS but openimageio is present on that one as version 2.0.5

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:13):

link

view this post on Zulip Sumagna Das (Dec 21 2019 at 16:13):

see?

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 16:36):

An upgrade should not touch your data (e.g. what ever is in the /home directory), but it may require some reconfiguration to get back the old behavior.

view this post on Zulip Sumagna Das (Dec 21 2019 at 17:47):

ok

view this post on Zulip Daniel Rossberg (Dec 21 2019 at 17:59):

I had just a fight with OpenShadingLanguage. This build.patch made it build.

view this post on Zulip Daniel Rossberg (Dec 22 2019 at 16:32):

I found no way to build appleseed on Linux.

view this post on Zulip Sumagna Das (Dec 23 2019 at 08:14):

Me too but trying

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 12:17):

I found no way to build appleseed on Linux.

Now, after some days trying, I finally succeeded. If anybody has questions regarding building Appleseed on Linux, feel free to ask.

There is a wiki page about this: https://github.com/appleseedhq/appleseed/wiki/Building-appleseed-on-Linux
However, I didn't found it helpful, except what it says about PYTHONHOME in the last section.

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:18):

i couldnt even build it completely

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:18):

it stopping somewhere or the other

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:20):

i even had to upgrade the whole os from an LTS to a normal version (which i am now regretting)

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:27):

from 18.04 to 19.04

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:42):

these errors are coming for which i am rebuilding with some extra options but what are these errors and how to fix them if they come back

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 13:04):

In appleseeds CMake settings (use the cmake-gui), there is an entry for boost static (serach for these two words to find the actual name). Switch it to OFF, and the boost error schould have been gone.

Then, did you installed Open Shading Language?

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:02):

i didnt install osl but used the libraries from the prebuilt ones

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:02):

btw my cmake-gui is not working

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:02):

sayin segmentation fault(core dumped)

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:10):

trying to build appleseed again

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:10):

i had to install cmake-qt-gui

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:23):

its building and btw boost static was already off

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 14:34):

Did you installed libboost-all-dev?

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:36):

error.png

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:36):

this came

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:36):

many of the packages are reporting this so what should i do?

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 14:37):

Is synaptic installed?

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:38):

yea

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 14:38):

You could also try apt install libboost-all-dev

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 14:38):

yea

Then start it, and use this to install libboost-all-dev.

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:39):

sudo aptitude install libboost-all-dev

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:39):

i used this

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:39):

it is installing

view this post on Zulip Sumagna Das (Dec 23 2019 at 14:40):

sorry gotta go for a few seconds

view this post on Zulip Mitesh (Mar 23 2020 at 14:47):

image.png
image.png

hi. was trying to run rtexample.c in visual studio 15. I have added the folders of header files in "additional include directories", but I am still getting this error. Can anyone please help me out

view this post on Zulip Daniel Rossberg (Mar 23 2020 at 15:03):

Is it possible, that you added the include paths for the release, but not the debug configuration?

view this post on Zulip Mitesh (Mar 23 2020 at 15:10):

Daniel Rossberg said:

Is it possible, that you added the include paths for the release, but not the debug configuration?

image.png

the project properties under debug menu are same as the properties in above pictures
I guess its using same properties.

view this post on Zulip Daniel Rossberg (Mar 23 2020 at 15:16):

I can't see the include paths in above picture.
Do you guess or do you know?

You have to look for the project's debug configuration settings. (Do you know how/where?)

view this post on Zulip Mitesh (Mar 23 2020 at 15:18):

Daniel Rossberg said:

I can't see the include paths in above picture.
Do you guess or do you know?

You have to look for the project's debug configuration settings. (Do you know how/where?)

image.png

this one right?

view this post on Zulip Daniel Rossberg (Mar 23 2020 at 15:20):

No. Look at the top of this settings dialog. There you see "Configuration: Release". You need to switch it to debug (or "both").

view this post on Zulip Mitesh (Mar 23 2020 at 15:23):

Daniel Rossberg said:

No. Look at the top of this settings dialog. There you see "Configuration: Release". You need to switch it to debug (or "both").

okay I changed that. but still same errors.

view this post on Zulip Mitesh (Mar 23 2020 at 15:24):

Wait. I haven't included a folder.will try again

view this post on Zulip Mitesh (Mar 23 2020 at 15:27):

got it. Thank you so much @Daniel Rossberg

view this post on Zulip Mitesh (Mar 24 2020 at 05:01):

image.png
got this in output. Also the cmd screen exits within a second.
why does the program returns 2 instead of 0?

view this post on Zulip Sean (Mar 24 2020 at 06:45):

@Mitesh if you are attempting to do the appleseed tasks, I suggest connecting up with @Jeffrey Liu to see his work and where he left off at. amazing progress. you'd want to start from there if you're wanting to carry that torch.

view this post on Zulip Mitesh (Mar 24 2020 at 06:57):

Sean said:

Mitesh if you are attempting to do the appleseed tasks, I suggest connecting up with Jeffrey Liu to see his work and where he left off at. amazing progress. you'd want to start from there if you're wanting to carry that torch.

alright :+1: i will contact him. Thank you

view this post on Zulip Daniel Rossberg (Mar 24 2020 at 07:37):

Mitesh said:

image.png
got this in output. Also the cmd screen exits within a second.
why does the program returns 2 instead of 0?

This is hard to say without knowing the program. I would expect a return 2; (or similar) in the main() function.

view this post on Zulip Mitesh (Mar 25 2020 at 04:07):

Daniel Rossberg said:

Mitesh said:

image.png
got this in output. Also the cmd screen exits within a second.
why does the program returns 2 instead of 0?

This is hard to say without knowing the program. I would expect a return 2; (or similar) in the main() function.

yeah it was the bu_exit(), there was some problem with command line arguements that leaded it to exit the code with 2.


Last updated: Oct 09 2024 at 00:44 UTC