Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / 3D Modeller made in DBPro!!!! well, sort of...

Author
Message
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 6th Jun 2003 03:11 Edited at: 28th Jun 2003 01:27
I have been experimenting with memblocks and wanted to see if it was possible to make a 3d modeller in DBPro.

In this example, it makes a cube entirely with of memblocks. If you know how, you can make other objects with the data statements at the bottom. You can then select vertices, move them around, and color them. You cannot add vertices (yet). It's a bit buggy, but it works.



Mouse: Left click to (de)select vertices. Middle to move camera.
Up/Down: Move selected vertices
Control/Shift/Enter: Combined with left/right to change selected vertex colors.

Enjoy

[Edit]
Ignore the source button, use this code:


"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 6th Jun 2003 23:21 Edited at: 6th Jun 2003 23:21
Come on no one wants to reply?

Does it not work?

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
lcfcfan
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 7th Jun 2003 02:31
i just got a blue screen with a bit of text at the top :-s

andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 7th Jun 2003 03:12 Edited at: 7th Jun 2003 03:13
Arggg.. Is that why no one replied?!?!?!

Did you try the camera button? Press middle mouse button and it should zoom out. Then you can move the camera with the mouse, zoom by moving the middle mouse button, and left click to go back to object editing mode.

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
Jonny_S
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 7th Jun 2003 03:26
cool, only being able to move the verts up and down aint so good, but I dunno how to change it :p

The man with no sig
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 7th Jun 2003 04:19 Edited at: 7th Jun 2003 04:25
What do you expect? An entire modelling program? This is only like the first step.
Does anybody like it?

You can change the vertex color too btw.

[Edit]
Oops. The vertex color is not working. It was working before. Ill fix it later.

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 8th Jun 2003 19:01 Edited at: 8th Jun 2003 19:01
Ok, I fixed it. It had to do with the normals.

Heres the fixed code.

Can I have some more comments... Please?

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 8th Jun 2003 23:04
blue screen .....thats it....
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 8th Jun 2003 23:12
ok....now i see ..an octogone..but...there is some error..anyway....
but im in DBC T_T
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 8th Jun 2003 23:32
I don't think it works in DBC.

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 9th Jun 2003 12:44
not all of us have 3 button mice also.

At the moment Im back to 2 since my genius netscroll died and budget dictates no $15 replacement at the momo.

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 9th Jun 2003 12:53 Edited at: 9th Jun 2003 12:54
....hmm it should work in DBC...every command work in dbc....
i can run it......anyway ...
if i have the time ill check it deeper....
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 9th Jun 2003 19:55
Works for me, except all the normals are the same, so each vertex has the same shading no matter where it is in relation to the others. A bit hard to make anything useful with it, but still .

Once I was but the learner,
now, I am the Master.
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 9th Jun 2003 22:55 Edited at: 9th Jun 2003 22:55
@indi
Quote: "not all of us have 3 button mice also."

Oh, sorry, I didn't know that. I figured that all of you had better computers than me anyway.

@TheDarthster
I know. It's pretty basic now, just the bare bones. Do you think it is worth persuing? I mean try to make a full modeller?

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Jun 2003 23:12
I think it's definitly worth pursueing.It would be a great way to show the flexibiltiy of darkbasic.



(Current)-Conquest of the Continent Announced!!-
(progress)-concept/story/goals finished-
(misc.)learning m-shape&ts5 (as current as)6-9-03
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 9th Jun 2003 23:27
But is it worth the work? I have tons of other projects that I want to do, most half or greater finished. Maybe in the future...

If anyone wants, feel free to use and expand on the code.

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!

Login to post a reply

Server time is: 2024-04-25 17:30:38
Your offset time is: 2024-04-25 17:30:38