Forum Replies Created
-
AuthorPosts
-
Sean Robinson
ParticipantI think the “water” (in lava mode) you are calling a “shader” is part of the “color map” in the sandbox software, it describes the sand elevation using different colors. The default color map is blue below sea level and a rainbow of colors above sea level.
You can tell the running sandbox to use a new color map file:
1) If not already done, add a control pipe in the folder you launch SARndbox. In a terminal window, run
mknod SARndbox.pipe p
to create a pipe you will use to control the running sandbox.2) If not already done, tell SARndbox to use a control pipe. This is done with the
-cp SARndbox.pipe
option. I.e. “SARndbox -uhm” becomes “SARndbox -uhm -cp SARndbox.pipe”. The pipe names must match in steps 1 and 2.3) Create an alternate color map file. Find “HeightColorMap.cpt” and copy it, in the same folder, to “HeightColorMap-lava.cpt”. The four columns in cpt files are (left to right) elevation, red, green, and blue. Edit “HeightColorMap-lava.cpt” to swap the red and blue values for all elevations below sea level. For example, the first line (“-40.0 0 0 80”) becomes “-40.0 80 0 0”.
4) Test your new color map in a terminal window. Run
echo "colorMap HeightColorMap-lava.cpt" > SARndbox.fifo
to change to the lava color map. Runecho "colorMap HeightColorMap.cpt" > SARndbox.fifo
to change to the default color map.5) Add
echo "colorMap <color map file>" > SARndbox.fifo
to the “switch” scripts to match the color map to the texture.6) Ask questions if you run into problems.
Sean Robinson
ParticipantHi Peter,
If you mold the sand into a distinctive shape (e.g. a tall hill next to a deep valley) before starting the sandbox, do the proper contour lines get drawn on the initial shape?
I’d like to determine if the Kinect is ever getting a good measurement or if the contour readings are stuck on some measurement internal to the Kinect.
Sean Robinson
ParticipantIt looks like the simpler fix (if you’ve “done the permissions changes”) is to use ‘$ make build’ rather than ‘$ make’.
Sean Robinson
Participant@Cormac Congratulations on changing the texture. Another sandbox gets enhanced!
When the textures change the shaders stay the same however.
I apologize, but I don’t understand what you mean. Could you give a concrete example?
January 19, 2023 at 6:59 am in reply to: Problem with Step 6a (Optional): Calculate Per-pixel Depth Correction #2434Sean Robinson
ParticipantDid you run RawKinectViewer with sudo? sudo is needed because the calibration file will be written to a “system” (vs “home”) directory.
What do you get when you run
ls -l /usr/local/etc/Vrui-8.0/Kinect-3.10/
in a terminal window? This should list files and permissions in the same directory RawKinectViewer wants to write the calibration.Sean Robinson
ParticipantI have not run across a troubleshooting guide anywhere. That would be a nice resource.
Are you sure the green light used to remain solid? The LED on our Kinect V1 begins to flash once it is connected to USB and continues to flash when the sandbox software runs.
What is your sandbox doing incorrectly?
Sean Robinson
ParticipantThank you for posting about your project. I don’t have much experience with Docker and none with desktop applications in Docker.
Could you give a non-technical explanation of sarndbox-docker?
My own confusion can be seen in two areas:
Is this for building a package? Or will the container run the sandbox software, too?
If I run an Ubuntu 18.04 container, do I need to update and manager software for two systems? One in the container and one on the host?
Sean Robinson
ParticipantNo worries. I just wanted to know the OS version to try to point you in the right direction.
The errors you see are because some things in the compiler changed after LM19 and Vrui has not been updated to handle those changes. If hardware support is an issue, I recommend LM21 over LM20.
See the VRUI – “Unable to locate package” thread for a probable fix.
Sean Robinson
ParticipantI suspect you are not using Linux Mint 19, the recommended OS for AR Sandbox. It’s possible to use other OSes, but some changes may be needed for the build process.
Could you post the output of
lsb_release -dc
? The output will tell me what OS version you are using.Sean Robinson
ParticipantThere is a fork of an earlier version of SARndbox called Magic Sand that added plant and animal animations. I have not seen more than demo videos.
https://github.com/thomwolf/Magic-Sand
If you do add fish, please post about it here. I would love to try it out.
December 19, 2022 at 7:08 am in reply to: Adding assigned water keys when other modifications are already present #2416Sean Robinson
ParticipantI suspect there are several versions of Vrui, Kinect, and SARndbox simultaneously installed on your sandbox. While this is not a problem for the software, it can lead to confusion for the person maintaining the sandbox. As an example, the desktop icon shell script seems to be running SARndbox v2.3, but the latest version is 2.8. If you run
ls -ld ~/src/*
in a terminal window, it should show all the versions currently installed.Your changes to SARndbox.cfg look generally good. I don’t know enough about your specific sandbox configuration to say whether this will definitely add water tools.
Bonus round
Run the sandbox from a terminal window with the
-h
option to see a list of all options and their defaults. One option is-evr
to set a constant evaporation rate.IIRC, draining happens just as fast as raining. They’re the same absolute magnitude, but opposite signs.
If you want to have a button press for a faster drain, I think it could be done with some pre-build patches and more scripting with the control pipe.
Sean Robinson
ParticipantThank you for providing the error message. I think the solution is as simple as running the following in a terminal window:
chmod u+x /home/civur/src/scripts/weather.sh
.Files must be marked as executable before bash will run them from the command line. The above command makes the weather script able to be run by the civur user.
The “switch-to-snow.sh” (and similar) scripts should be okay with how thay are executed in weather.sh. But, if you see more “Permission denied” error, try changing the permission on the “switch” scripts, too.
Let us know if this works. If it does, the River Wey Trust may want to include permission changes in their script documentation.
Sean Robinson
ParticipantWelcome, Ivan.
Could you post the output of
lsb_release -dc
? The output will tell me what OS version you are using.Can you see if the openal-dev package is installed?
sudo apt-get install openal-dev
should install it or tell you it is already on your computer.December 12, 2022 at 9:44 am in reply to: Adding different liquid textures/animations (lava, toxic waste, etc) #2404Sean Robinson
ParticipantIs it possible to set this up so that I could easily switch between textures?
Yes. The way I’ve seen it done (including by the River Wey Trust) is to keep several files prepared (water, lava, etc.) and copy the file you want to use to
SurfaceAddWaterColor.fs
.December 12, 2022 at 9:40 am in reply to: Vrui: Unable to inhibit screen saver due to exception #2402Sean Robinson
ParticipantThis could be a problem with Vrui, DBus, or the screensaver. Vrui is sending something analogous to the following command to inhibit the screensaver. What do you get if you run the following?
gdbus call --session --dest org.freedesktop.ScreenSaver --object-path /org/freedesktop/ScreenSaver --method org.freedesktop.ScreenSaver.Inhibit "Vrui" "Vrui running"
It should print somthing like “(uint32 X,)”, where “X” is an integer.
-
This reply was modified 1 month, 3 weeks ago by
Sean Robinson. Reason: C -> X
-
This reply was modified 1 month, 3 weeks ago by
-
AuthorPosts