00:25.36 |
CIA-62 |
BRL-CAD: 03bhinesley * r45729
10/brlcad/trunk/src/libged/edit.c: (log message trimmed) |
00:25.36 |
CIA-62 |
BRL-CAD: Started on command-specific argument
handling for translate, fixed some minor |
00:25.36 |
CIA-62 |
BRL-CAD: problems, and simplified some things.
Need to have edit() add appropriate flags |
00:25.36 |
CIA-62 |
BRL-CAD: to command line args and remove
command line character options from each arg's |
00:25.36 |
CIA-62 |
BRL-CAD: cl_options[] before I can continue.
Tried to add this functionality in |
00:25.36 |
CIA-62 |
BRL-CAD: ged_edit() as it is originally adding
the args, but it really needs to be done |
00:25.37 |
CIA-62 |
BRL-CAD: on a second loop, since the arguments
before and after the current arg make a |
01:08.49 |
CIA-62 |
BRL-CAD: 03kunigami * r45730
10/brlcad/trunk/src/liboptical/ (liboslrend.cpp liboslrend.h
sh_osl.cpp): started coding the (supposely) raytracer using OSL.
the results are not correct |
01:09.12 |
kunigami_ |
http://dl.dropbox.com/u/1399996/GSoC/Refraction-Weight.png |
01:09.43 |
kunigami_ |
I still didn't find out how to get the colors
from the shaders :( |
01:11.25 |
kunigami_ |
What I'm currently doing is to traverse each
light and call eval_reflect (I didn't understand why there exists
eval_transmit) and get the average weight |
03:04.46 |
brlcad |
someone needs to tell r_weiss that he doesn't
really need to mention the file name in his commit messages...
kinda blatently redundant |
03:05.40 |
brlcad |
kunigami_: so what is that picture? |
05:52.41 |
*** join/#brlcad Stattrav
(~Stattrav@122.178.209.201) |
05:52.41 |
*** join/#brlcad Stattrav
(~Stattrav@unaffiliated/stattrav) |
06:08.34 |
*** join/#brlcad kanzure
(~kanzure@131.252.130.248) |
08:54.43 |
*** join/#brlcad abhi2011
(~chatzilla@ip170-79-211-87.adsl2.static.versatel.nl) |
08:54.51 |
abhi2011 |
hi |
08:55.09 |
abhi2011 |
So I was trying to add a new command yesterday
to mged |
08:55.18 |
abhi2011 |
I get this error during the build |
08:56.03 |
abhi2011 |
http://bin.cakephp.org/view/276195617 |
08:56.29 |
abhi2011 |
seems after adding the implementing c function
to setup.c, it has to be also declared somewhere |
08:59.07 |
bhinesley |
abhi2011: lets see your setup.c line
again |
08:59.32 |
abhi2011 |
{"tire", cmd_ged_plain_wrapper,
ged_tire}, |
08:59.34 |
abhi2011 |
<PROTECTED> |
08:59.36 |
abhi2011 |
<PROTECTED> |
08:59.53 |
abhi2011 |
the 2nd lie was added by me |
09:00.39 |
abhi2011 |
i think ged_runphysics has to be declared in
libged somewhere |
09:01.14 |
abhi2011 |
maybe after i changed the implementation name
in the c file |
09:01.27 |
abhi2011 |
I have to declare it in a related
header |
09:02.28 |
bhinesley |
there are a ton of places for new commands to
be "declared", for various uses. It's kind of a dark art. Try
adding a line to the cmd_tab in
src/libtclcad/tclcad_obj.c |
09:03.31 |
bhinesley |
not sure if that will do you any good since
you're trying to add it to mged only |
09:03.47 |
abhi2011 |
ok i will try that |
09:04.49 |
abhi2011 |
but are you sure there is no header file like
src/libged/runphysics.h required for the newly added
src/libged/runphysics.c |
09:05.17 |
bhinesley |
yes, actually, I just recalled what it is you
probably need: include/ged.h |
09:05.31 |
abhi2011 |
i do have it included |
09:05.38 |
abhi2011 |
let me paste the code 1 sec |
09:06.21 |
abhi2011 |
http://bin.cakephp.org/view/1016518663 |
09:08.03 |
bhinesley |
Oh, right... I meant that you probably need to
add a ged_runphysics declaration to the file
include/ged.h |
09:08.04 |
abhi2011 |
but ged.h does not have a declaration of the
new function in runphysics.c , |
09:08.05 |
abhi2011 |
int |
09:08.06 |
abhi2011 |
ged_runphysics(struct ged *gedp, int argc,
const char *argv[]) |
09:08.11 |
bhinesley |
nods |
09:08.13 |
abhi2011 |
ok |
09:11.09 |
abhi2011 |
by the way, what does wdb routine
mean |
09:11.14 |
abhi2011 |
came across them in ged.h |
09:12.21 |
bhinesley |
search HACKING for libwdb |
09:12.35 |
abhi2011 |
right :) |
09:13.57 |
abhi2011 |
cool the build resumed again |
09:14.14 |
bhinesley |
cool |
09:33.20 |
CIA-62 |
BRL-CAD: 03bhinesley * r45731
10/brlcad/trunk/src/libged/edit.c: |
09:33.20 |
CIA-62 |
BRL-CAD: Updated several helper functions to
work with a recent change from automatic |
09:33.20 |
CIA-62 |
BRL-CAD: arguments in union edit_cmd to
pointers. Added command-specific functions to |
09:33.20 |
CIA-62 |
BRL-CAD: initialize the needed argument
pointers. Fixed a problem with the help |
09:33.20 |
CIA-62 |
BRL-CAD: subsystem, and eliminated a bit of
redundancy. More edit() testing, but not a |
09:33.20 |
CIA-62 |
BRL-CAD: whole heck of lot of foreward
progress yet. |
09:50.45 |
kunigami_ |
brlcad: it's the average weight returned by
eval_reflect |
11:46.25 |
*** join/#brlcad Stattrav
(~Stattrav@122.178.209.201) |
11:46.25 |
*** join/#brlcad Stattrav
(~Stattrav@unaffiliated/stattrav) |
12:18.36 |
abhi2011 |
success!! |
12:18.41 |
abhi2011 |
new command added :P |
12:22.10 |
abhi2011 |
I was wondering, regarding mged application
wrappers |
12:22.32 |
abhi2011 |
so suppose i have written a simple application
that say just prints hello world |
12:22.45 |
abhi2011 |
now I want to integrate it into mged |
12:23.48 |
abhi2011 |
so I would insert code in libged
like |
12:23.50 |
abhi2011 |
int |
12:23.51 |
abhi2011 |
ged_runphysics(struct ged *gedp, int argc,
const char *argv[]) |
12:24.51 |
abhi2011 |
so i guess i would need to migrate the c code
to the wrapper c file inside libged |
12:25.29 |
abhi2011 |
it would not be possible for mged to call my
precompiled program and direct its output to its own output in the
mged window ? |
12:26.51 |
abhi2011 |
and also provide it input through the argc,
argv[] arguments that is generally used to receive command line
parameters by c programs ? |
12:29.30 |
abhi2011 |
hmm I guess not, such a thing would need to be
done by the wrapper function if at all required |
13:21.05 |
*** join/#brlcad dtidrow
(~dtidrow@c-68-84-167-135.hsd1.mi.comcast.net) |
13:53.47 |
brlcad |
kunigami_: ah, that makes a lot more
sense! |
13:55.27 |
brlcad |
looks like there's a curious bias, though --
I'd expect surface reflectivity to be fairly constant for the flat
surfaces |
13:56.10 |
brlcad |
looks more like it's showing the relative
amount of energy reflected |
13:57.58 |
brlcad |
abhi2011: you could call a preompiled program
and direct output to the mged window (several mged commands do
exactly that) ... it's just bad design |
13:58.20 |
brlcad |
and for a physics engine integration, you
really don't want unnecessary overhead |
13:58.53 |
brlcad |
needs to be tight and fast so you could call
it 20 times a second without delay |
14:52.44 |
*** join/#brlcad ibot
(~ibot@rikers.org) |
14:52.44 |
*** topic/#brlcad is BRL-CAD
Open Source Solid Modeling || http://brlcad.org || http://sf.net/projects/brlcad
|| #brlcad logs: http://ibot.rikers.org/%23brlcad/
|| BRL-CAD release 7.20.2 is posted (20110701) || BRL-CAD is
participating in the ESA Summer of Code in Space! |
15:14.06 |
abhi2011 |
right i ll insert it as a command in
mged |
15:14.51 |
abhi2011 |
right now I am checking with a checked out
copy of brlcad, whether i can compile and install bullet with it
and start the physics through a command |
15:15.11 |
abhi2011 |
so bullet has it own sources of
course |
15:15.31 |
abhi2011 |
where would you generally place the sources
for an external library, in the src tree i mean |
17:35.02 |
``Erik |
src/other/ usually... but until it's end user
ready, it might be better to say "hey, developers, you need bullet
installed to use it" |
18:37.01 |
abhi2011 |
right ok |
18:37.10 |
abhi2011 |
so i have got bullet installed and running
now |
18:37.39 |
abhi2011 |
will proceed to write add it to the runphysics
command |
18:37.42 |
abhi2011 |
but before that |
18:38.11 |
abhi2011 |
is there any command or app wrapper that
access the list of objects in mged |
18:38.17 |
abhi2011 |
i want to se how its done |
18:38.50 |
abhi2011 |
because say the user has drawn a sphere, then
I would need its dimensions to insert it in the physics world and
run a simulation |
18:49.52 |
abhi2011 |
hmm...I am using the autotools build, I have
included a new Bullet header now to the new command I had added to
mged earlier (by modifying tire.c in src/libged) |
18:50.52 |
abhi2011 |
the new header is #include
<btBulletDynamicsCommon.h> , and its already been placed in
/usr/local/include/bullet during Bullet installation |
18:51.05 |
abhi2011 |
but apparently bullet does not look here for
headers |
18:51.19 |
abhi2011 |
have to modify the build logic to make sure it
does |
18:55.33 |
abhi2011 |
any idea where exactly can add this so it
appears as a -I/usr/local/include/bullet compiler option during the
build |
19:03.20 |
CIA-62 |
BRL-CAD: 03starseeker * r45732
10/brlcad/trunk/CMakeLists.txt: Provide an option to allow RPMS to
have a version-specific unique name, to make it simpler to allow
for installing multiple versions of BRL-CAD on one
system. |
20:11.58 |
*** join/#brlcad
CalinPaulAlexand (~Calin@109.99.20.242) |
21:46.12 |
*** join/#brlcad DarkCalff
(DC@173.231.40.98) |
22:17.43 |
bhinesley |
yay, clean build time went from 37min ->
16min when I switched out my 7200RPM drive for an SSD |
22:49.44 |
*** join/#brlcad abhi2011
(~chatzilla@ip170-79-211-87.adsl2.static.versatel.nl) |
22:51.24 |
abhi2011 |
hi |
22:51.35 |
abhi2011 |
I have a question regarding adding new
headers |