Lazarus
Programming => Graphics and Multimedia => Graphics => Topic started by: lainz on May 14, 2016, 04:16:31 pm
-
Welcome to the Graphics Contest!
This contest is inspired in the BGRA Contest which it was conducted last year (http://forum.lazarus.freepascal.org/index.php/topic,29038.0.html).
The main idea is to share the creations with other users of the forum and create a repository of open source code with all participants.
This is the repository of the last year for you to see (https://github.com/bgrabitmap/bgracontest).
Categories you can participate are (not limited to, it means you can invent something out of the ordinary too):
- UI Design
- Animation
- Game design
- Photo manipulation
- Anything you can do with graphics!
Libraries that can be used:
- You can use any graphics related library or unit that works with FPC / Lazarus, check the wiki for a list (http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Libraries).
Deadline
There are 2 months time so that everyone can participate, the deadline is the 14/07/2016 and from there began the feedback of users. The programs will be voted on by users with simple comments.
-
Cool! :)
I will find something to do. 8-)
-
Well I need to do something too, maybe an UI this time... I don't know ::)
-
And no need to say I'm in too ;)
-
@lainz there is no limit for project count?
-
No, there is no limit, submit many as you want.
-
No, there is no limit, submit many as you want.
Very good.
-
lainz mixer:
"Put a winged snake into an invisible virtual mixer to see it move faster and then stop to give time you take a picture of him with a nice white background and featuring 3d graphics with opengl bgrabitmap"
The code is mostly thanks to circular and his help, the object, material and bitmaps are made by myself. The code isn't too much and is my first 3D thing.
PD: it runs fullscreen, my graphics card does not have antialiasing, feel free to turn it off or add more aa steps, as you want.
-
Quite nice!
Oh I see what you're saying about antialiasing. In fact, the OpenGL renderer of BGRABitmap does not do antialiasing. I am not sure how to implement it.
Apologies for the confusion!
I wonder why the lightness is different when using LowQuality or AlwaysHighQuality lighting. Also the rendering is a bit slow. I will look at that when I have the time to do so and see if I can improve BGRABitmap.
EDIT: I fixed the lightness with LowQuality. Regarding the slowness, I suppose it is because there are a lot of vertices/faces. Maybe there are some possible optimizations to do in BGRABitmap to handle a high quantity of vertices/faces.
-
Nice! :P
I should learn your code if I want to do 3D, just a question: what is the creature name? I liked it.
-
I like the idea of sharing some graphic open source code, created with Lazarus / FreePascal and / or a graphics related library. So I've made a hint of this contest in the German Lazarusforum: http://www.lazarusforum.de/viewtopic.php?f=1&t=9776 (http://www.lazarusforum.de/viewtopic.php?f=1&t=9776).
If I find the time, I'll also try to create a little project with BGRABitmap. I've already a idea.
Til then
Michl
PS: It would be nice, if there are some snapshots (to see for everyone, not only for the forum users) of the projects, so every one can have a look at it and decide to download a project or not (maybe a Wiki page or something else)?!
-
Thanks Michl and I hope to see you project and also nice idea about screenshot.
-
Yes, we could put some screenshots on the wiki of the contest:
https://github.com/bgrabitmap/bgracontest/wiki
I guess we could include screenshots and links to project that are not made with BGRABitmap as well.
In the meantime, here is a screenshot of lainz mixer:
-
Well now I get the antialiasing :)
The creature name I don't know, is lainz dragon lol
Michl enter the contest please, we need more people here :)
Nice idea of the wiki, at least that repository will be growing more and more, I need to create a subfolder one for the first contest, other for the second to mantain order.
-
Nice idea of the wiki, at least that repository will be growing more and more, I need to create a subfolder one for the first contest, other for the second to mantain order.
I think wiki should be in FreePascal wiki for future and an independent repository will be better.
-
Oh and nice dragon :D
-
I think I should participate and use Allegro.pas. Also, I have to join the wiki and add links to Allegro.pas everywhere... ::)
Nice dragon, indeed.
-
Here is my little example, done in three evenings. It's the first version of a pictureview / slideshow with moved pictures. I call it ShakingPix.
You can download here: https://github.com/Michl1/ShakingPix (https://github.com/Michl1/ShakingPix), also attached here.
Tested with Lazarus Trunk and Lazarus 1.6 32/64bit Windows/Linux.
To compile ShakingPix, you need at least:
Lazarus 1.6, BGRABitmap 8.9.2 (older versions not tested)
Linux: OpenGL libraries See: https://en.wikibooks.org/wiki/OpenGL_Programming/Installation/Linux
Steps to compile the project:
Start Lazarus.
Before you open the project, you have to install package LazOpenGLContext 0.0.1 (from Lazarus repository) and BGLControls from BGRABitmap.
Open the project and compile it (use the release version). Hope it work for you too.
You can select a directory for the images by right click on the form.
For full screen, you can double click on form (works mostly only one time, a bug, I have to search for).
You can switch the maximum picture size (width/height) by a Spinedit (also little Sizes are nice).
;) Have fun :)
-
Amazing job Michl!
-
Clean code and interesting result Michl.
It seems this time is harder contest :D
-
I like this shaking pix demo :)
-
Thanks a lot for the feedback! :)
So it sounds for me, it runs on your machines. Thats nice!
If you have some problems, please report. It was the first time, that I used the package BGLControls and I like it.
I also have some ideas to enhance and speed up the program, will see...
Interesting for me would be, on what for a system you tested the code.
Hope some more people will share some code.
-
Tested under Windows 10 x64, 8 gb ram, i7-.
-
An me same as lainz
-
I've only tested Windows 7. Nice to hear, it works for Windows 10 too.
-
Almost a month left to the end of the contest, please submit :)
-
I'll participate on nxPascal then :) Took a while to come up with an idea but there is one now, will see how it goes. Just 1 tip: it relates to gravity.
-
Hi! I am a bit late on this contest. However I will have more time now so will be able to do my thing.
-
And me too.
-
Nice, waiting to see your 3 projects :)
-
I guess this project didn't turn out to be as good as i hoped, but here it is :-[ Including nx files in download made it exceed forum limit so might aswell put executable with it too. I've always wanted to see gravity grid, so now that's fulfilled. Also the actual math on orbit speeds turned out to be more complicated than i'm going to assign time for. Had to also make some compromises on the scale of things, because of z-buffering limitations of OpenGL, and practicality on moving the camera around the whole solar system.
https://www.dropbox.com/s/ygzmjtai3f43ep1/SolarDemo.zip?dl=0
(Dropbox UI may be confusing, download link is for me under 3 dots at top right)
-
Nice project! I like the gravity view in the grid...
-
That's nice indeed. What about adding some lighting to the sun (even if it does not make much sense from a physical point of view) ?
-
Actually the sun is a light source there. Other planets around are shaded with it. It's just missing textures, particles etc, was also planning to add the ring for saturn so there is a ready png for it. But then the zooming levels were so disappointing. You wouldn't be able to see much of the planets so it would be a waste. Would require a different way to control view maybe, where you can lock it to planets. The coordinates only go for like -20.0 to 20.0 from 1 end of solar system to other end. If i 10x'd that, z-buffer started to hit and stuff started disappearing. That was even with the depthbuffer itself disabled, and Z_FAR set to max.
-
Maybe more then one project are valid?
So I've made a smiley tunnel, cause I would ever have a smiley tunnel :D
Made with BGRABitmap, tested on Windows and Linux (64 and 32 bit) (32bit BGRABitmap at Linux has a little problem, but a patch is available).
-
Yes you can put as many projects as you want.
This is awesome, I can't stop looking at this!!
-
Thank you very much, twice, cause I was inspired by your lainzmixer (http://forum.lazarus.freepascal.org/index.php/topic,32626.msg211643.html#msg211643)! So I had a good starting point :)
-
@User137 very cool, I liked this demo and your old demos with the engine. your engine seems so cool and I like to see more works with it.
@Michl :D this is very funny and freaking in the same time :D I like the codding too, it is a good sample to learn some 3D.
@circular it seems it is you and me left, I was busy and away from my works but I will make something cool for sure before the end :D And I like to learn from you, your last project had many points for me.
-
This is awesome, I can't stop looking at this!!
Plus, I think it puts a smile on everybody's faces too. :)
-
@Graeme I love to see some work from you with AggPas, it can be a good sample show for it, dont forget it can be UI with fpGUI.
-
Hi, this is a small demo that I did in minutes with bgrabitmap.js
Check it here:
https://github.com/bgrabitmap/bgrabitmap.js
Just download attachment and run test.html
-
So coool :D
-
There's still over 2 weeks time left it seems, just noting.
-
Here is my demo. It is called Water3D. :)
It requires latest version of BGRABitmap (9.0) to handle water transparency correctly.
How it works: the water is made of an hexagonal grid and the algorithm is basically the one that was on the thread about water (http://forum.lazarus.freepascal.org/index.php/topic,32228.0.html). This gives a 3d surface that is then rendered with material with specular reflection and transparency.
-
Ah, Very good job and a very good learning sample for me :D Thanks Circular.
-
I am happy you like it :)
-
Nice water glup glup
-
I did a second demo, showing off trails of particle engine. This time no binaries or library included, just source code.
After coding with Unity engine so much, i keep seeing lots and lots of things i'd do differently now if i were to improve nxPascal... Sadly there is hardly time for that.
-
I like those trails :) How do you do that? By drawing a glow texture many times?
Are you saying you would like to spend more times improving nxPascal?
-
The 3D rotation is nice, everything inside in it's correct position.
I use unity too, unity grows so fast is a big company. Targeting for android is much easier than with Lazarus and you get almost the same graphics (not all but almost)...
-
I like those trails :) How do you do that? By drawing a glow texture many times?
Are you saying you would like to spend more times improving nxPascal?
Yeah the trail is drawn from 3 dimensions, so that you can see it from all camera angles. I suppose it would be possible to implement it with just 1 actual trail too, if using modelview matrix in the calculations (like sprites always facing the camera). It's easily possible to increase the moving object count in that scene, but it just becomes a giant white blur ::) https://github.com/Zaflis/nxpascal/blob/master/src/nxGLExtra.pas#L466
Yeah it's on the wishlist of things i'd like to do, just busy with other things. 2 android projects ongoing for example...
-
Hi, this is my new demo Paint Phantom, with unique electric blue ink.
Feel free to improve it since is quite simple :D
Also there is a gap between the lines sometimes, my logic is not too big to debug it and fill that gap...
-
Ah yes, that's "electric" blue indeed.
What about using a black background instead?
-
Yes it looks better with black background. Thanks for the idea!
-
Only 4 days left, then you (anyone) can vote your favorite.
-
tic tac tic tac...
-
I said I would try to create a graphics demo using Allegro. I'll not promise anything but may be (only may be) I can do something today.
I hadn't had time; actually I still haven't time, but I need to do something different before my mind explode. :'(
-
@lainz With regard to the lainzdemo.7z. I don’t understand what this demo is used for but I’m very impressed by how fast and smooth it runs in my (Chrome) browser! P.s. Also love the dragon.
As for the other graphics contest demos, I can’t compile them unless I modify my Lazarus installation. I’m a bit reluctant to do that at the moment, partly because I don’t know the proper way to do it but also, when I added the later bgrabitmap8.9 to my projects they failed to compile. Strangely, the function ‘getpixel’ which previously didn’t work on bgrabitmap8.6, started working when I reverted back to bgrabitmap8.6 so I’m obviously doing something wrong.
I’ve have successfully installed lazarus-1.6.0-fpc-3.0.0-win32 on my Win7 laptop so maybe I can get the demos running on that set-up. It would be nice to have ready compiled demos for download but I’m guessing the merit of the bgracontest will be based on the ingenuity of the source as much as the final presentation.
My own work is a bit too simple for a graphics contest but if any other beginners are reading this I strongly recommend persevering with Lazarus as it’s absolutely fantastic with lots of ready made components to play with (not to mention hundreds of ready made functions & procedures). For example, below are screenshots of a QuickBasic programs I’m currently converting. It’s a geographical tool for exploring the alignment of ancient monuments, temples & stone circles. By using bgrabitmap for the screen I can have separate transparent layers for the coastlines, graticules, paths & labels. By using multiple forms I can have pop up windows for more tools and opening & saving images and files is a doddle too so the only limit is your own imagination.
A big thank you to Circular, Lainz, Aradeonas, Michl, Ñuño_Martínez, Leledumbo, Graeme, rvk, GetMem, User137, Molly, Old_Dog, christian1987, marcov, ykot and everyone else who helped me & made this possible. Kindest regards RWC.
-
I give up. :'(
I tried to reproduce my old voxel renderer but for some reason con&sin functions don't seem to work and it doesn't render anything. I've revised the maths involved and seems correct. I've revised my old C sources, and it seems exactly the same, both using radians (as FPC documentation say), etc. But it still doesn't render! :o
Well, actually I introduced a bug that made it render something (when I fix the bug it doesn't render anything), but it's highly deformed. I really don't know what's wrong. >:(
[edit] I'll try again from scratch. May be I can do something.
-
@Nuno: you can put your code here if you want some help.
@RWC: it is already good, however you need to post your code to be "in".
-
Ah, I missed the date, I hope I make it until the the night :|
-
Don't worry we can extend it one more week if Ñuño, RWC and aradeonas will be in. Please comment if you want more time. Else today is the last day.
I'm preparing the repository, I will use the bgracontest one and separate by year, so next year we just add the new projects and that's all.
I think also we can provide executables in a tag release, but I'm having problems compiling the old examples some things don't work in one of my projects maybe I'll discuss that in other thread.
-
I hope it will be finished today but a couple of days may be good if others want.
I think a new repo will be better through its not BGRA only and we can link to the previous one in it.
About exe my last project has one available for download.
-
Let's add a week, time until 21/07/2016.
Despite of the repository name both description and readme points that is code from BGRA Contest 2015 and Graphics Contest 2016.
Your 2015 demo compiles so just my koala demo is not working, but I think circular will find the problem and the code will be fixed. Is something related with pixel filters changed.
When that get's fixed I'll upload all the executables from 2015 and 2016 for win32. Other platforms feel free to contribute with all executables and will be uploaded too.
I've not added nx library in one demo, when everything else is ready we need to update the wiki pointing each demo author and libs needed to compile.
-
I did it, finally. Actually I'm not sure what were wrong with my previous code. I know it is related with space coordinates and sin/cos stuff, and may be because I tried to optimize the code as I was writing. ;D Now it works!
Two screenshots, one psychodelic (created by the demo) and another using a heightmap I found on Internet many years ago I don't remember where...
The code in the next post as it overloads the maximun size.
-
And here's the code. Note that it's highly un-optimized so if you have an old computer it may be really slow. Also sometimes it stucks and I don't know why. And I've included the island heightmap too.
I'm really tempted to restart my voxel game engine. I've seen some voxel movement in the Indy-game development world but I don't see that they're using them properly. :-X I think I can do a cool game...
-
Ñuño you have a repository on GitHub or elsewhere containing Allegro pas files or I must ship them with your source?
And also you can give me a list of the required .dll's in order to put them when I release the binaries?
Nice demo, I did something like that in Unity using a map I design in Blender.. Whit a sand texture, not that multicolor :)
-
Tikan!
Name: Tikan.
Category: Animation.
Author: Ara
Platforms : In theory every graphical platform that Lazarus and FreePascal support but checked only in Windows 10.
Description: This application is a Pascal implementation of beautiful work of humanssince1982 (http://www.humanssince1982.com/).
How to use:
1) Run application.
2) Sit back.
3) And watch!
4) Check the source or try it in debug mode if you want and play with buttons.
Known problems and wishes:
-I wish clock hands have shadow.
-Some bugs in reversed animating.
Thanks to:
-Circular as always for everything and his prevouse helps.
-Lainz for managing contest.
-humanssince1982 for the beautiful engineering-art work.
-And who ever I forgot to thanks ;)
Download links:
Executable (Windows) (http://bit.ly/2a1RP4u)
Source and executable (Windows) (http://bit.ly/29yKwRc)
Source (http://bit.ly/29BLZ4R)
-
Good job Ñuño! its complicated for me :D
-
Tikan is in one word: magnetic!
Amazing job aradeonas!
Edit: 10 demos! This year is the year... 8)
-
Tikan is in one word: magnetic!
Amazing job aradeonas!
Edit: 10 demos! This year is the year... 8)
:D :D Thanks
Yes a better year :p
-
@ara:
First I thought, hmm is this to be a bunch clocks, and then oh they do things together :)
You can add shadows to clock hands by precomputing a blurred version of the clock hand and drawing it wit an offset.
-
You can add shadows to clock hands by precomputing a blurred version of the clock hand and drawing it wit an offset.
I have problem with offset, I saw translate implementation for such thing so shadow position changes according to hand position but I dont know how to implement it with BGRA.
-
Ñuño you have a repository on GitHub or elsewhere containing Allegro pas files or I must ship them with your source?
The Allegro.pas repository at SourceForge (I know... :-[) is at https://sourceforge.net/p/allegro-pas/code/HEAD/tree/. I've used the last SVN TRUNK ones, but I've put in the package what you need.
And also you can give me a list of the required .dll's in order to put them when I release the binaries?
That is a bit more complicated. Allegro is at http://www.liballeg.org/, but I recommend you to download them from http://download.gna.org/allegro/allegro-bin/5.2.0/ as they contain tested binaries only.
My demo doesn't need all DLL files. If I'm correct you'll need:
allegro-5.2.dll
allegro_font-5.2.dll
allegro_image-5.2.dll
allegro_dialog-5.2.dll
allegro_primitives-5.2.dll
allegro_color-5.2.dll
Nice demo, I did something like that in Unity using a map I design in Blender.. Whit a sand texture, not that multicolor :)
Thanks :D
Good job Ñuño! its complicated for me :D
Thanks, but I have little credit here. I've just remember a tutorial I read at flipcode (http://www.flipcode.com/) long time ago.
The other demos are really awesome.
-
Thanks. Yes that was the dll I downloaded to test your application. Is linked in the official allegro website too. OK I've added the pas files too.
All demos are in the repository, only the binaries are left. Soon :)
-
@nuno:
Here is a version of your demo that I have optimized. Enjoy! :)
-
I slightly improved the resolution as well. Here is a screenshot:
-
Thanks circular I've added it to the repository too. Replacing the original code because for that is the revision control, we can have both :)
All the win32 binaries from 2015 contest and 2016 contest are here:
https://github.com/bgrabitmap/bgracontest/releases/tag/v1.0
Seems that everybody posted their sources, so if there is no one left to put the sources please start voting your favorites!
-
@lainz: I deactivate the compiler optimizations and enabled debug info to debug, I guess the LPI file would be better with it as it was in the original
-
@lainz: I deactivate the compiler optimizations and enabled debug info to debug, I guess the LPI file would be better with it as it was in the original
I've added debug and release modes for all .lpi in both 2015 and 2016 projects.
-
Thanks :)
-
Interesting works here! I've tested all project and get all to run. :)
I like the lainz mixer for the clear short code (and the inspiration it sends to me, to do something with BGRABitmap).
I like the circular Water3D, cause its clear and easy to manipulate. Here, with pointed light and red color, it looks ... very scary, MUHAHAHH ...
I like the User137 second demo lightning, done with nxPascal (before, I didn't know about it), cause of the good mouse control and the lights.
I like the Ñuño_Martínez demo Voxel. Thank you for using ALLEGRO, so I could see it work.
I like the aradeonas Tikan. Its a really nice show effect and well composed!
Thank you all and all I forgot to mention, for your work, your credits, your criticism and the inspiration you seed!
-
@circular: Thank you that’s very encouraging. I didn’t post it as an entry but to show off some of bgrabitmap capabilities. The source code is embarrassingly messy and still full of errors & ommissions. If you guys are interested (and like a laugh) you can have a copy but I don’t want it public until it’s more presentable.
The only one I have that’s ok would be my ASM/BGRABitmap projects. It’s already been posted once but can be download in full from:
https://mega.nz/#F!DJskkDbT!A6PWr6ji4gId8q4vmsvaNw
No login needed just rightclick LandrgbLaz01 Full.zip & choose Download => Standard download.
@Lainz: paintphantom works well on my win7 Lazarus v1.6. I’m sure Microsoft’s will love it for signing their Certificates of Authenticity.
Unfortunately lainzmixer when compiled gives the following error messages:
Compile Project, Mode: Debug, Target: project1.exe: Exit code 1, Errors: 5
unit1.pas(56,3) Error: Identifier not found "FetchDirectory"
unit1.pas(57,8) Error: Identifier not found "FetchObject"
unit1.pas(57,53) Error: Expression type must be class or record type, got <erroneous type>
unit1.pas(60,5) Error: Identifier not found "MainPart"
unit1.pas(61,5) Error: Identifier not found "MainPart"
@Michl: ShakingPix & Smiley Tunnel are both amazing! The latter would make a brilliant screen saver and I know a certain Vicar who would love to get his hands on ShakingPix to display his downloads. :-X
@User137: Awesome. nxPascalDemo2 & SolarDemo run at 62fps on my win7 laptop & Vista desktop. Nice work.
@all: I still have more entries to test but so far this is really impressive work guys & I look forward to delving into your source. Best wishes, RWC.
-
@RWC: nice voxel. It would be great to be able to resize the view. And try for example 640x480.
About the error you get when compiling lainz mixer, you need a more recent version of BGRABitmap.
Here is a lighter version of your project that can be posted in this thread:
-
Ok so a Lainz said, time to vote.
I vote for the smiley tunnel of Michl. :) :) :)
-
@circular: I’ve got your water3d working on my win7 laptop at last. The code is way beyond me but the effect looks really good. Reminds me of a tar pit – I can imagine it in a game for trapping the careless player (plus some dinosaur bones). Would look great in brown/black against that background image. I also like your older ‘water_improved.zip’ it produces some nice troughs & peaks when clicked close to the corners. A swimming pool bottom image that rippled or a sky reflection depending on the view angle could be quite interesting too. Really nice work on both demos.
p.s. Please excuse my ignorance but I don’t know what ‘voxel’ means? I did try modifying the code for different screen sizes but a fixed size of 640x480 should be straightforward. Thanks again circular & thanks the jpegged conversion of my textures, it compiles and works fine so attached is my entry. all the best RWC.
-
RWC Thanks for this new demo, I've added it to the repository and also to the binary downloads.
Is hard to select a favorite :-X
About 3D graphics are a lot and 2d too, Well I'll select aradeonas demo and circular demo, those are.
-
@circular: I’ve got your water3d working on my win7 laptop at last. The code is way beyond me but the effect looks really good.
I could say the same about your assembler code. ;)
A swimming pool bottom image that rippled or a sky reflection depending on the view angle could be quite interesting too. Really nice work on both demos.
I though about it a bit but did not find an obvious way to do it at the time.
p.s. Please excuse my ignorance but I don’t know what ‘voxel’ means?
Voxel means volumetric pixel. It is a little cube in space that is painted on the screen.
-
@RWC your work is very cool! messy but very cool, I like it very much. My vote is for you ;)
-
@RWC your work is very cool! messy but very cool, I like it very much.
+1 !!!
Still, my vote is for lainz mixer, cause for the spirit of that contest, its for me the best:
- easy understandable source code (not many lines)
- easy to manipulate
- nice effect
-
This is really embarrassing :-[ but I can't find where to download the projects from GitHub (I must say that I always find GitHub hard to use and very user unfriendly, may be I'm getting old). I suppose I can download all them from the posts of this thread, can I?
[edit] Ok, I've finally found a link in one of lainz's messages. If somebody is like me, Here they are (https://github.com/bgrabitmap/bgracontest/releases/tag/v1.0).[/edit]
[edit2]It doesn't allow me to upack the ZIP file (Linux). I can open the package, see the files it contains, but when I try to extract any it says there's a problem. %) The tar.gz one seems to work.[/edit2]
Anyway, I'm happy you liked my demo. :)
@nuno:
Here is a version of your demo that I have optimized. Enjoy! :)
Interesting works here! I've tested all project and get all to run. :)
I like the lainz mixer for the clear short code (and the inspiration it sends to me, to do something with BGRABitmap).
I like the circular Water3D, cause its clear and easy to manipulate. Here, with pointed light and red color, it looks ... very scary, MUHAHAHH ...
I like the User137 second demo lightning, done with nxPascal (before, I didn't know about it), cause of the good mouse control and the lights.
I like the Ñuño_Martínez demo Voxel. Thank you for using ALLEGRO, so I could see it work.
I like the aradeonas Tikan. Its a really nice show effect and well composed!
Thank you all and all I forgot to mention, for your work, your credits, your criticism and the inspiration you seed!
-
Try this, is 1.1 because it has an extra project and fixes
https://github.com/bgrabitmap/bgracontest/releases
You're on Linux? If yes you can Provide the binaries For that plataform of 2015 and 2016 projects?
-
@circular: thanks for sorting the error – I’ve updated bgrabitmap8.6 to 9.1 and now I have Lainz’s dragon spinning around on my laptop screen – very impressive - fps & smoothness looks good too.
@Lainz: many thanks to you too – This is amazing & I’m still trying to understand what’s going on? To me it looks like you’ve created the 3d object in Blender and loaded it into a true 3d environment with lighting, rendering & rotation capabilities but I can’t see any 3d program? Is this part of GL or BGRAbitmap? Either way it’s astonishing & opening my eyes to so many possibilities! BTW why is it
called ‘lainzmixer’? I’ve always associated a mixer with audio? My friend Guy named your dragon ‘Colgate’ because it reminded him of a modern stylised toothbrush but I prefer Dragon Candy because it’s like candy rock. I also like the way it rotates like a spinning hanging mobile that slowly comes to a stop and slowly starts spinning the other way – very nice touch.
@Ñuño_Martínez: I’m having too much trouble understanding the compiling method to see your work in action. I’ve download the compiled 32bit version of Allegro 5.2 (& Allegro.pas5.2) but can’t see any installers or install instructions & I’m so dumb I don’t even know how to open a console. Is that something in Allegro or Lazarus? Is there a ready made Windows exe I can download?
@ Ñuño_Martínez: Update. Just found the exe on Github and it work really well on this WinVista system, really fast & smooth. It’s a bit like my own demo but I can see it uses a proper professional 3d environment unlike my very limited pseudo3d method. Can’t wait to try my own textures with it.
@aradeonas: your Tikan seemed a bit plain at first run but blew everyone out of the room when it started doing it’s stuff! A really clever piece of work. Some comments were made about adding colour to enhance the digital clock but that’s just cosmetics.
@ User137: I like the spiralling trails on nxPascalDemo2. Does this represent the spin of the particle when it hit’s the inner wall? I wonder how long it will take for the sphere to empty if random quantum tunnelling was implemented, of course some particles would randomly enter the sphere too so I guess it depends on the external state? I also like the way the mouse yaws & pitches the sphere, exactly the way I want to control my world Globe.
As for voting, It’s a bit like choosing your favourite child, they all have their own unique points. I’m not qualified to vote on the code but based on looks it would be Lainz’s dragon, based on surprise & ingenuity it a toss between User137’s Tiken & Michl’s ShakingPix. Michl’s Smiley Tunnel is like a clown, it made me laugh and yet was slightly sinister at the same time. Nuno’s demovox is a lovely smooth 3d environment & I would vote it above my own demo as it’s much more practical. User137’s nxPascalDemo2 seems to have some clever maths as does circular’s water3d and both are well presented so how do I choose????
OK I’m gonna have to bite the bullet & vote for circular’s water3d. Well done circular & well done everyone else, you all deserve a vote really.
-
@RWC: Regarding the compilation of the allegro program, basically you need to compile from Lazarus, that produces an exe file. Then, I don't know if there is a better method, but what you can do is to copy the Dlls of Allegro in the same directory, so that the exe file will find them.
-
@circular: That’s great, demovox is working now thanks circular.
@ Ñuño_Martínez: But I can’t pass the two picture files in command line. From the windows ‘Run’ command I browsed to the bin folder & checked the pics & exe were present and typed combinations of:
‘’…path…\voxel.exe #./voxel height-2.pcx ground.pcx” & “…\voxel.exe /height-2.pcx ground.pcx” etc. but the commands are not accepted? If I type without the switch i.e. ‘’…path…\voxel.exe” it runs fine and displays the rainbow generated maps.
@aradeonas: Thank you very much, glad you liked it. For your Tiken background sound I recommend Pink Floyd’s ‘Time’ (Dark side of the Moon). A wicked combination.
-
@aradeonas: Thank you very much, glad you liked it. For your Tiken background sound I recommend Pink Floyd’s ‘Time’ (Dark side of the Moon). A wicked combination.
Ah, thanks for the recommendation.
-
Try this, is 1.1 because it has an extra project and fixes
https://github.com/bgrabitmap/bgracontest/releases
Thanks. I will.
You're on Linux? If yes you can Provide the binaries For that plataform of 2015 and 2016 projects?
I would try. Note that I'm using Xubuntu 14.04.4 64bit, so may be it doesn't work in other Linux flavours.
@Ñuño_Martínez: I’m having too much trouble understanding the compiling method to see your work in action. I’ve download the compiled 32bit version of Allegro 5.2 (& Allegro.pas5.2) but can’t see any installers or install instructions & I’m so dumb I don’t even know how to open a console. Is that something in Allegro or Lazarus? Is there a ready made Windows exe I can download?
I use something like the "GNU way", or the way they used some years ago. Today they use more weird configuration scripts...
Anyway I created a Lazarus project too, that should do the work. Open the ".lpi" file with Lazarus.
About Allegro, there are packages for different configurations. Read this message (http://forum.lazarus.freepascal.org/index.php/topic,32626.msg216109.html#msg216109).
@ Ñuño_Martínez: Update. Just found the exe on Github and it work really well on this WinVista system, really fast & smooth. It’s a bit like my own demo but I can see it uses a proper professional 3d environment unlike my very limited pseudo3d method. Can’t wait to try my own textures with it.
Thanks. :) I did try your textures and seems interesting.
@ Ñuño_Martínez: But I can’t pass the two picture files in command line. From the windows ‘Run’ command I browsed to the bin folder & checked the pics & exe were present and typed combinations of:
‘’…path…\voxel.exe #./voxel height-2.pcx ground.pcx” & “…\voxel.exe /height-2.pcx ground.pcx” etc. but the commands are not accepted? If I type without the switch i.e. ‘’…path…\voxel.exe” it runs fine and displays the rainbow generated maps.
Try to put the full path for the pictures too. For example:
path/>"c:/where the voxel is/bin/voxel.exe" "c:/where the voxel is/bin/height-2.pcx" "c:/where the voxel is/bin/ground.pcx"
Note the quotes. They're used to avoid problems with spaces in the path.
Anyway, if you're able to compile it with Lazarus, look at this menu option: Run>Run parameters... It opens a dialog where you can add command options to it. Set the "Working directory" to the one where the EXE file is, then add the name of the pictures in the "Command line parameters". It should work.
-
Try to put the full path for the pictures too.
Thank you Ñuño, your pcx’s load now. The ground texture looks very effective – how was it made? My own attempts using PhotoShop’s ‘Lighting Effect’ on a ‘Cloud’ rendered image have been ok but a bit bland – see below. Best regards RWC.
-
The both heightmap and ground bitmaps were borrowed from Internet. I don't know who the author is. BTW the height-2.pcx file was created by a custom program made by myself, as Allegro 5 isn't able to deal with 8bpp bitmaps. I used Allegro 4 to load it, then use the index colour to build a new heightmap and save it as 32bpp.
-
BTW the height-2.pcx file was created by a custom program made by myself
@ Ñuño_Martínez: Ah! so that’s why height.pcx doesn’t work properly - nice conversion job.
-
I am trying to count the votes, here is what I found, allowing one vote per person:
Smiley tunnel by Michl
voted by Circular
Landrgb by RWC
voted by Aradeonas
Mixer by Lainz
voted by Michl
Water3d by Circular
voted by RWC
Tikan by Aradeonas
voted by Lainz
Did not find any vote from Nuno.
We cannot determine a winner, so I suggest that everybody votes for two demos.
@Lainz
You voted for Aradeonas' demo and my demo. So I suppose I can count those votes as your two votes.
-
So there is no winner yet :o
-
@Others please participate and vote.
-
Sorry, I was pretty busy. I'll try soon.
-
Its ok 2 votes each one. Please vote again. PD: anyone can vote not only participants.
-
Isn't it possible to create a poll for it (I don't know how, but I've seen some here)? Maybe someone is to shy to vote public.
-
Isn't it possible to create a poll for it (I don't know how, but I've seen some here)? Maybe someone is to shy to vote public.
Done. It allows one vote per user. Projects sorted alphabetically.
-
Thank you! :)
-
Its ok 2 votes each one. Please vote again. PD: anyone can vote not only participants.
@Lainz: I’ve submitted my 2nd vote for Michl’s ShakingPix in the panel above but it allows only one vote per user so does my 1st vote for circular’s water3d still get counted?
@ Michl: Nice manipulation of images both code-wise and visually.
-
@RWC:
Ah it's confusing. Ok, so for people who wants to give two votes, please write here your additional vote.
So, in the poll I voted for the smiley tunnel (already counted). And my additional vote goes to DemoVox.
RWC, your vote on the poll is for ShakingPix. And your additional vote is for Water3d.
-
@Circular Thanks – looks like I put a spanner in the works! sorry Lainz – but maybe the next contest could have a vote for innovation, coding, visual impact etc. since every entry had it’s own particular merit.
-
@Circular Thanks – looks like I put a spanner in the works! sorry Lainz – but maybe the next contest could have a vote for innovation, coding, visual impact etc. since every entry had it’s own particular merit.
Don't worry! I created this contest to see your works and learn more, and to all of participants do the same. The winner is important because it's a contest, but is not my primary goal.
PD: I vote water3d in the pool so it's my second vote, the first was for Tikan.
-
I vote for Lainz JS demo because its a new line of work. After that I like Nxpascaldemo2 because its very cool :D
-
I had voted in the poll for Lainzmixer (cause of the clear code, easy to work with it).
After that I like Nxpascaldemo2 because its very cool :D
Yes, also my second vote.
-
Ok, so I guess the additional votes are...
Nxpascaldemo2
voted by Michl and aradeonas
water3d
voted by RWC and Lainz
Demovox
voted by Circular
Is it correct?
-
Yes it is.
-
So the combined votes are:
ShakingPix 3
Water3d 3
SmileyTunnel 2
Nxpascaldemo2 2
Tikan 2
Landrgblaz 2
Lainzmixer 1
Demovox 1
ShakingPix and Water3d have the same amount of points. ::)
As Michl has done ShakingPix, but also SmileyTunnel, and that SmileyTunnel has 2 points, I guess it is fair to say that the winner is Michl! :)
Congratulations to everyone and congratulations to Michl.
-
Congratulations Michl!
I locked the pool so is the official winner and no one takes his place :D
-
Nice cup - well done Michl & everyone else.
-
WTF...I'm the winner? :-[ ... I'm the winner! :D :D :D (but of course, I part the first place with circular ;D)
Thank you! I'm very happy, you like the little work, I've done :D
It was fun, to do some stuff, I haven't done before. And it is fun to see the other stuff from you guys! I hope it was, it is, fun for you too. We are all winners!
Thank you also for the nice trophee! I'll print it and wait for comments of my family ::)
And special thanks to circular and lainz, without your work, I hadn't done anything here!
See you next
a smiling
Michl
-
Ah what a beautiful trophee, congratulate Michl and very happy to see your works this year.
@circular Can I send my old trophee back and get a new shinny one? :D Just kidding :p
A big thanks to Lainz and circular for managing contest.
-
:D Well if you would like an upgraded trophee, that's possible.
-
Yes please if you got time :D :D
I want to set it as a wallpaper and show off :D
-
Here is the trophee of last year in the category UI, won by aradeonas :)
-
Ah, Thank you Circular :D :p
-
Congrats!! 8)