Author Topic: 3D Modeler for Icaros  (Read 2128 times)

miker1264

  • Senior Member
  • ****
  • Posts: 262
  • Karma: +11/-1
3D Modeler for Icaros
« on: June 21, 2019, 12:15:53 AM »
Icaros Desktop needs a 3D Modeler and Renderer similar to this to showcase it's versatility in rendering & displaying grahics.

There's an open source project available with Amiga 68k source code with similar capabilities. It's somewhat modular with a Modeler Window, Renderer & an Image Viewer that can also act as a standalone module for loading & displaying images. It was similar to and contemporary with LightWave 5.0 & Imagine. It specialized in a rendering technique called "Ray Tracing".

I managed to get the Amiga version setup and running in OS 3.9 last night. It uses Cybergraphx & Storm Mesa. I was able to open the Modeler Window to access the Main Menu but when I tried to render a scene it froze. I suppose I'm missing a part. I'll re-examine the Amiga source code to see what it's doing at that point.

I have set up an AROS project to revise & recompile the Loader & Viewer modules. Once that is complete & working on Icaros I will focus on the Modeler & Renderer. While I'm revising parts of it I'll make a few enhancements while keeping the core functions the same. I especially would like to add more picture types to save rendered images including saving to HAM6 & HAM8.

Because it's similar to 3DS R4 and it accepts 3DS files I'd like to re-name the Icaros version to "RayTrace Studio" with new icons.

Even if it only renders gold balls, or glass marbles, or a clown juggling silver balls, that's a good start. I made a new shiny icon for the Modeler & I plan to make one for the standalone Viewer as well. I always wanted to use the AROS symbol for an app icon. ;)

miker1264

  • Senior Member
  • ****
  • Posts: 262
  • Karma: +11/-1
Re: 3D Modeler for Icaros
« Reply #1 on: June 21, 2019, 12:17:39 AM »
Another sample.

trekiej

  • Member
  • ***
  • Posts: 157
  • Karma: +1/-0
Re: 3D Modeler for Icaros
« Reply #2 on: June 21, 2019, 03:01:40 AM »
Excellent!

salvatore

  • Guest
Re: 3D Modeler for Icaros
« Reply #3 on: June 21, 2019, 08:09:27 AM »
 ;)

Zevs

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: 3D Modeler for Icaros
« Reply #4 on: June 21, 2019, 08:19:18 AM »
There is also RayStorm. That would be perfect for AROS 8)

salvatore

  • Guest
Re: 3D Modeler for Icaros
« Reply #5 on: June 21, 2019, 08:25:48 AM »
it's this the code who use

salvatore

  • Guest
Re: 3D Modeler for Icaros
« Reply #6 on: June 21, 2019, 08:27:54 AM »
for icon add is after resize, include an example

miker1264

  • Senior Member
  • ****
  • Posts: 262
  • Karma: +11/-1
Re: 3D Modeler for Icaros
« Reply #7 on: June 21, 2019, 09:44:46 AM »
Nice. Good idea. Thank you.

This AROS icon would be appropriate for the recompiled version of the RayStorm viewer.

The Gold icon I showed earlier is for the Modeler.

I'll work more on the Viewer this weekend to get the Viewer working on Icaros Desktop. :)

salvatore

  • Guest
Re: 3D Modeler for Icaros
« Reply #8 on: June 21, 2019, 11:07:22 AM »
ok  :)

thank you

ps.attemp first july ;)
« Last Edit: June 21, 2019, 12:05:08 PM by salvatore »

dizzy

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Re: 3D Modeler for Icaros
« Reply #9 on: June 21, 2019, 01:40:40 PM »
I'd like to see open sourced implementation for Fusion 360 like application. I've used the Fusion 360 quite a lot for my CNC milling and the gui is really intuitive.

https://www.autodesk.com/campaigns/fusion-360-learning/webinar-gettingstarted

I once made a STL viewer for AROS but I no longer have the source code, It may be somewhere but don't remember where...

It was ment to do more but I lost interest for it. It would need a ray cast to select objects etc. and ofcourse STL slicer for 3d printing.

We can do more with AROS and OpenGL now than what was possible back then. For example the Fusion 360 uses "cartoon like shader" to show the outlines of an object. OpenGL just does that for us without too much code.

https://youtu.be/VEp94WwAZjk
https://youtu.be/j2EcpCf4_kM

Here's a video for the STLView MUI/Zune class

https://youtu.be/CNUyA0DPFBs
https://youtu.be/DiB_WCnrcAY

If you can find the source for it then do whatever you like with it.
« Last Edit: June 21, 2019, 02:04:33 PM by dizzy »

salvatore

  • Guest
Re: 3D Modeler for Icaros
« Reply #10 on: June 21, 2019, 02:32:17 PM »
I think better to focus on this project first without offense, I personally asked for the port of raystorm to Miker and I told him that I will support him financially and I will do it

hi
« Last Edit: June 21, 2019, 02:39:06 PM by salvatore »

dizzy

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Re: 3D Modeler for Icaros
« Reply #11 on: June 21, 2019, 02:51:22 PM »
No offense taken what so ever  :) I just tought that it might be difficult to translate m68k code to C. We can easily bypass a lot of code by using C and OpenGL and MUI/Zune classes. Let the GPU do the work that was done by CPU previously.

I have to admit that I don't know the inner workings of RayStorm, but if it would be possible to use OpenGL instead of the old Amiga libraries then I would use the OpenGL. It is not going to go anywhere for a while. Also we get the software renderer for free and if there is OpenGL capable GPU then it uses it. Also the VBO is a must. Just send the vertices to GPU once and then tell from where to render the scene and how. From my videos it might not be clear but the scene doesn't need to be updated at the monitor refresh rate, only when the viewpoint changes. When nothing moves then there is nothing to do.

Deadwood would be the best to answer for the implementation of OpenGL on AROS. I have spawned multiple of of MUI/Zune STLView classes on the same program and it worked ok as MUI/Zune renders the scenes in turns. Might not be safe on SMP.

http://www.songho.ca/opengl/gl_vbo.html

Using VBO it is possible to send the vertices to GPU and for the different scenes X/Y etc. just use the same buffer but with a different viewpoint. Fast as hell...
« Last Edit: June 21, 2019, 05:50:35 PM by dizzy »

miker1264

  • Senior Member
  • ****
  • Posts: 262
  • Karma: +11/-1
Re: 3D Modeler for Icaros
« Reply #12 on: June 21, 2019, 03:47:47 PM »
Thank you. Lots of good information.

RayStorm m68k uses StormMesa.

dizzy

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Re: 3D Modeler for Icaros
« Reply #13 on: June 21, 2019, 03:51:43 PM »
Thanks,

I'm not sure if this still compiles, but I think this the most up to date source that I have.

https://www.dropbox.com/sh/eufyjclxxqijub9/AACTKnCqbDDt3YXYT9wgQShIa?dl=0

paolone

  • Moderator
  • Senior Member
  • *****
  • Posts: 265
  • Karma: +3/-0
Re: 3D Modeler for Icaros
« Reply #14 on: June 21, 2019, 04:11:58 PM »
I like the idea of a 3D modeler. Although the best option would be porting Blender to AROS (there is a OS4 version... so it shouldn't impossible to port), I can perfectly understand it would be a huge task to perform.
So please port what's more comfortable to you: having a simple modeler is far better than having NO modeler. :-)