| 00:12.07 | CIA-68 | BRL-CAD: 03starseeker * r52431 10/brlcad/trunk/src/librt/test_botpatches.cpp: Start working on loop assembly |
| 00:56.58 | *** join/#brlcad merzo (~merzo@171-40-133-95.pool.ukrtel.net) | |
| 02:23.07 | *** join/#brlcad crdueck (~cdk@24-212-219-10.cable.teksavvy.com) | |
| 03:18.08 | brlcad | elf_: that looks better, though should clarify whether the ground plane must be named gp or gp.r |
| 03:18.51 | brlcad | and why |
| 03:20.18 | brlcad | and for the animation, it's not exactly like the fly-around but is similar in how you'll make the animation |
| 03:20.27 | brlcad | you don't need to spin the view around |
| 03:21.13 | brlcad | you just want to simulate a step (or 10 or 100 or whatever makes a tiny step), render a frame, simulate, render, etc .. then pull all those renderings into an animation |
| 03:21.23 | brlcad | that's best/easily done with a script |
| 04:45.51 | elf_ | brlcad, so I should have a loop, where I simulate a tiny step, then render a frame? right? |
| 04:56.15 | brlcad | yes |
| 05:47.19 | *** join/#brlcad KimK (~Kim__@2001:470:1f0f:1042:4261:86ff:fe43:bcad) | |
| 09:18.00 | *** join/#brlcad KimK (~Kim__@2001:470:1f0f:1042:4261:86ff:fe43:bcad) | |
| 10:05.30 | *** join/#brlcad stas (~stas@82.208.133.12) | |
| 10:34.58 | *** join/#brlcad Al_Da_Best (~Al_Da_Bes@5e0e1434.bb.sky.com) | |
| 11:05.01 | *** join/#brlcad KimK (~Kim__@2001:470:1f0f:1042:4261:86ff:fe43:bcad) | |
| 13:30.50 | *** join/#brlcad elf_ (~elf@109.97.136.125) | |
| 13:36.12 | elf_ | brlcad, I have some problems trying to understand how should I get the regions and groups from the database into the simulation |
| 13:37.49 | elf_ | I get it that there in the the for loop should be a mged sim.g simulate n(where n is number of steps) command and also an rt -o image$i.pix command |
| 13:38.17 | elf_ | but how does the simulation know from where to take the regions? |
| 14:24.57 | elf_ | I think I figured that one out |
| 14:25.23 | elf_ | here's what the script looks like http://paste.ubuntu.com/1200642/ |
| 14:25.35 | elf_ | waiting for a small simulation to run and see if it works |
| 14:25.44 | elf_ | properly I mean |
| 14:54.57 | elf_ | this is the way I think the script should be http://paste.ubuntu.com/1200687/ |
| 14:55.00 | brlcad | elf_: script needs a little tlc -- don't need the -M option to rt |
| 14:55.21 | brlcad | probably best to just pass -a -e parameters for azimuth elevation |
| 14:55.23 | elf_ | but I get some errors http://paste.ubuntu.com/1200689/ |
| 14:55.55 | brlcad | if you remove the -M, you don't need the two EOF lines (which aren't right btw) |
| 14:55.58 | elf_ | okay, will do that though when I try to get a png image |
| 14:56.01 | brlcad | at least, not useful |
| 14:56.24 | brlcad | if you want a png, put -o image.png instead of image.pix |
| 14:56.27 | elf_ | <PROTECTED> |
| 14:56.37 | brlcad | and it's probably right |
| 14:56.50 | brlcad | with the -M option, that says you're going to provide an rt command script |
| 14:57.08 | brlcad | your command script (the lines *between* your two EOF lines) ... is .... empty |
| 14:57.20 | brlcad | so it had nothing to do, not pix file results |
| 14:57.40 | brlcad | if you remove the command script (the -M option), it'll default to a single frame render like you want |
| 14:58.17 | elf_ | right, initially wanted to set some scene like in OpenGl the eye point and such but that must be done in an additional tcl script right? |
| 15:00.23 | brlcad | nope, you have the right idea with the -M rt script |
| 15:01.02 | brlcad | you just can't leave it empty, that's what tells rt what to do |
| 15:01.24 | brlcad | if you run the "saveview" command in mged, you can save a given view script to a file |
| 15:01.47 | brlcad | that will have the exact rt view information and command you'll need to set a specific view |
| 15:02.45 | elf_ | okay, will do that for the moment I got rid of the -M and the 2 EOF lines |
| 15:03.00 | elf_ | but I still get the error about image$i.pix not existing... |
| 15:05.20 | elf_ | how can you change the way a db is opened? I get the error that the current db is read only |
| 15:06.48 | elf_ | also "db5_get_raw_internal_fp() : Database is too short, want=67448, got=11975 db_dirbuild(home/elf/brlcad/su.g):db_scan() failed" |
| 15:21.45 | brlcad | run the rt command outside of the script first, just on the command line |
| 15:23.31 | brlcad | on the unix command line, get that to work, then put it in your script |
| 16:24.12 | elf_ | solved it |
| 16:24.54 | elf_ | here's the simulate.sh without the -M option the elevation is given in the command so no need for a rt script |
| 16:25.05 | elf_ | http://paste.ubuntu.com/1200812/ |
| 16:25.26 | elf_ | and here's the simulate.sh with the -M option http://paste.ubuntu.com/1200811/ |
| 16:26.26 | elf_ | both of them are on the mged_simulation wiki page http://brlcad.org/wiki/Mged_simulation |
| 16:26.48 | elf_ | and added an explanation about why the ground plane should be named "gp" also |
| 17:19.50 | elf_ | about the movie, what do you recommend to use? |
| 18:47.30 | *** join/#brlcad KimK (~Kim__@2001:470:1f0f:1042:4261:86ff:fe43:bcad) | |
| 20:21.46 | *** join/#brlcad KimK (~Kim__@209.248.147.2.nw.nuvox.net) | |
| 20:51.43 | brlcad | elf_: scripts look good, though I would reverse their order in your tutorial where you can first describe how to create a simple animation first, then explain the rt command script and how to set that up |
| 20:52.08 | brlcad | you don't explain where those numbers come from or how to get them or what they do |
| 20:53.36 | brlcad | remember, you're aiming for a complete newbie audience -- if your mother were reading this, would she have enough information to not just reproduce what you did, but understand it enough to create her own animation? |
| 22:16.58 | *** join/#brlcad merzo (~merzo@199-41-133-95.pool.ukrtel.net) | |
| 22:55.38 | *** join/#brlcad CIA-69 (cia@cia.vc) | |