Recent Posts

Pages: 1 ... 7 8 [9] 10
81
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« Last post by James on August 23, 2020, 11:25:45 am »
New version of LaserBoy!

https://laserboy.org/code/LaserBoy_Current.zip

LaserBoy_2020_08_23.zip

In this release I finally figured out how to compile and link with SDL2!

It still compiles and links with SDL 1.2.15 as well.

And it compiles in 64-bit Windows!

This distribution comes with LaserBoy.exe compiled with SDL 1.2.15 in Win32 compatible with XP and probably below AND LaserBoy64.exe compiled with SDL2 in Win64.

Since it is now possible to compile with SDL2, it should make in MacOSX.

I have to give a shout out to the people who put together MSYS2. It is really nice! If you want the GCC compiler on a Windows machine this is the way to go.
82
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« Last post by James on July 01, 2020, 03:42:46 pm »
This is the contents of math.txt. There is only one example of each form.

http://laserboy.org/math.mp4
83
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« Last post by James on July 01, 2020, 02:48:22 pm »
This version of LaserBoy introduces something completely new.

https://laserboy.org/code/LaserBoy_Current.zip

LaserBoy ASCII math forms!

[single frames]
math rhodonea
math epicycloid
math epitrochoid
math hypocycloid
math hypotrochoid
math lissajou
math pendulum
math pendulum_sum
math pendulum_xy
math pendulum_xyz
math harmonograph
math harmonograph_3D
math amplitude_mod
math amplitude_mod_xy
math amplitude_mod_xyz
math frequency_mod
math frequency_mod_xy
math frequency_mod_xyz

[animated frame sets]
math rhodoneas
math epicycloids
math epitrochoids
math hypocycloids
math hypotrochoids
math lissajous
math pendulums
math pendulums_sum
math pendulums_xy
math pendulums_xyz
math harmonographs
math harmonographs_3D
math amplitude_mods
math amplitude_mods_xy
math amplitude_mods_xyz
math frequency_mods
math frequency_mods_xy
math frequency_mods_xyz

Each of these take parameters in a specific order from text and render into LaserBoy frames.

All of the math is done with double float and scaled to 100% of signed short int space.

Animations are written as two sets of identical single forms.
LaserBoy does linear interpolation between them to create all the frames in between.

See:
./LaserBoy/txt/math.txt

To open this file

i to import
4 for txt
math.txt
1 to replace frame set

Each form is a solid color.

For better effect,

g frame to palette trans
up arrow 5 taps to the palette of pure hues.
C (capital) to set all frames to use this palette
^ (shift 6) to span the palette through the vertices of all frames
[Esc] back to main and hit
` ( or ~) to play the frame set

Enjoy!
84
Construction / Re: Just wanted to say Hello!
« Last post by James on June 16, 2020, 10:09:46 pm »
Hello WesleyOKan!

Thank you for the kind words.

What brings you to The LaserBoy Forum?

Is there something in particular that you are looking to find?

James.
85
Construction / Just wanted to say Hello!
« Last post by WesleyOKan on June 16, 2020, 07:57:54 pm »
Awesome forum posts, Cheers.
86
LaserBoy !!! / Re: ILD/Pattern to .wav
« Last post by James on May 26, 2020, 11:52:03 am »
There are several steps to getting a vector image to be time optimized for a laser projector. Each frame needs to be stripped of superfluous points and all of the lit segments have to be rearranged in an order that is the shortest path. This involves looking at both ends of any lit segment and possibly reversing its direction. Then point are added along long lines to control the scanner rotational speed and points are added to corners to allow the scanners to stop before changing direction. There are many functions involved in this process and they must be called in the right order.
87
LaserBoy !!! / Re: ILD/Pattern to .wav
« Last post by James on May 25, 2020, 09:33:38 pm »
First you need some vector art.

Then you need to do some math.
88
LaserBoy !!! / ILD/Pattern to .wav
« Last post by trevorboultwood on May 25, 2020, 04:06:24 pm »
Hi James,


I'm from the recent photolexicon forum, i wanted to expand on my idea of creating a custom UI that would play my wav files with pictures etc. I had one question, ive been trying to think on how one might go from ILDA to .wav? Would it be possible to point me where in your code you take the pattern data into .wav?


Where would you start? Which line would you pick first? Decision making on which lines to then do next? Or am i over thinking this and you can use data directly from an ilda file? (is it in the correct order?!)


My next challenge I am setting myself this week is to understand the ilda format. It cant be too dificult right...?


Thank you again,


Trev
89
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« Last post by James on April 28, 2020, 03:48:03 pm »
Get libSDL 1.2.
90
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« Last post by CyberLab on April 28, 2020, 03:22:11 pm »
Quote
make -f Makefile
g++ -c LaserBoy.cpp -o ../src/LaserBoy.obj -O3 -msse2 -mfpmath=sse -Wall -Wextra -frounding-math -fsignaling-nans -Wno-missing-field-initializers -Wno-misleading-indentation -Wno-unused-but-set-variable -fexpensive-optimizations -static
In file included from LaserBoy.cpp:30:
LaserBoy_SDL_GUI.hpp:35:10: fatal error: SDL/SDL.h: No such file or directory
   35 | #include <SDL/SDL.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:26: ../src/LaserBoy.obj] Ошибка 1



Thanks for the advice! I installed the libboost-all-dev library, but now the SDL.h library is missing
Pages: 1 ... 7 8 [9] 10
SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal