Q3D V-2.4 [3D Physics + Skeletal Animation UPDATE]

Post your completed addons to share with the community

Post » Tue Jun 17, 2014 3:54 pm

Ubivis wrote:anyone figured out already on how to repeat a material?

Problem:
For my playaround, I set up a cube that renders a material on the inside (you walk on the inside of the cube). The cube itself has a random size in width, height and length. When I do assign the material to the cube, it gets streched.

Does anyone found out a way to repeat a material instead of stretching on the object?

Demo Instead of that washy streched texture, it should be drawn over and over again until the whole object is covered.


when you create a texture, you can change a few properties with some of the texture actions. one of them is "set ST wrap" which allows you to choose various texture repetition modes in the S-T directions, and another is "set UV repeat" which sets how many times the texture is repeated in a give spot where it would normally only repeat once. if you don't set ST wrap to "Repeat", UV repeat will just create an edge clamped texture.
B
77
S
13
G
8
Posts: 1,974
Reputation: 9,893

Post » Tue Jun 17, 2014 4:18 pm

Ubivis wrote:anyone figured out already on how to repeat a material?

Demo Instead of that washy streched texture, it should be drawn over and over again until the whole object is covered.

My PC is hanging out a bit while trying the demo. And the window is hanging too (like an infinite loop or something).
French developper based in La Rochelle/Tours
Machines I used to play or develop games : Amstrad, Atari, Amiga, PC, PS, Xbox, mobile
B
11
S
2
Posts: 69
Reputation: 819

Post » Tue Jun 17, 2014 4:29 pm

QuaziGNRLnose wrote:I'm limited by the SDK in what i can do right now, i can't add my loading stuff to the construct loading system (which is something i wanted to do) because the SDK gives me no way of doing that easily. I can't (don't think i can) get a list of the files in the files folder, because the SDK has no documented way of doing this. There are lots of little things like this which i can't do anything about right now but i'm trying my best to make the best use of whats available.


Without the help of Scirra there would always be limits. Important plugins like these need to be an integral part of C2, to have support of tools in the editor, etc...
B
43
S
11
G
4
Posts: 428
Reputation: 7,454

Post » Wed Jun 18, 2014 7:09 am

jhice wrote:
Ubivis wrote:anyone figured out already on how to repeat a material?

Demo Instead of that washy streched texture, it should be drawn over and over again until the whole object is covered.

My PC is hanging out a bit while trying the demo. And the window is hanging too (like an infinite loop or something).


Yes, there was a problem with one event, I forgot to add the trigger once for the object creation, so it got created all the time :)
eventsheet.png



QuaziGNRLnose wrote:when you create a texture, you can change a few properties with some of the texture actions. one of them is "set ST wrap" which allows you to choose various texture repetition modes in the S-T directions, and another is "set UV repeat" which sets how many times the texture is repeated in a give spot where it would normally only repeat once. if you don't set ST wrap to "Repeat", UV repeat will just create an edge clamped texture.


hmm, seems I'm just not enough into that 3D Stuff yet. Your suggested way seems not to work for me:
When Q3D.LoadStatus=1
-> I create texture from preloaded image
-> Set texture wrap S to (Repeat) and wrap T to (Repeat)
-> Create mesh basic material from that texture
-> Set created material to draw from the inside and outside
-> create my object with my cube geometry and the created material

Anything I'm doing wrong here?

For convenience, CAPX attached
dungeon master.capx
You do not have the required permissions to view the files attached to this post.
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Jun 18, 2014 12:48 pm

Bought it already, and will patiently wait for when @QuaziGNRLnose is finished with the next set of updates and has created the tutorials........am I the only one that feels like a kid waiting for the clock to strike 12 on Christmas night?
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Wed Jun 18, 2014 3:31 pm

Okay, slowly but steady I get used to the functions :)

If anyone is interested in having a look:
Dungeon Map Creator - Alpha One

You start at coordinates 0,0 and can add new parts to the map on the top right (just the corrdinated and click "add"). The Textbox below will give the JSON Array for your level created, but does not load it yet from there (this will be one of the next steps after I added "Walls")

If someone is interested to learn from this (nothing complex in there yet, but took me quite a while to get it to work as it is right now), drop me a PM and I will let you know the URL to download the Alphastate.
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Jun 18, 2014 4:03 pm

@Ubivis, without even looking at the capx, you're forgetting to set the "UV repeat" values of the texture to something higher than 1, also if your texture is not power of 2 the repeating wont work (it's a webGL thing i can do nothing about)
B
77
S
13
G
8
Posts: 1,974
Reputation: 9,893

Post » Wed Jun 18, 2014 11:39 pm

It's an impressive work that you've done, and I wish you all the success you can get!

I just don't understand why? There are at dozens of free (and partly free) 3D engines out there, that do an even more impressive work. I don't think Q3D will or wants to compete with them. And C2 is a 2D game maker, optimized for 2D development. So everything 3D will have to overcome the 2D restrictions (I'm talking about the editor. What about 3D vectors, vector math, etc.). Doesn't seem to be really comfortable.

But maybe there are enough customers that prefer limited 3D in a 2D game maker instead of unlimited 3D in a free 3D engine?

Again, kill me, but I don't want to belittle your work. It's just so ... strange. I can't classify it.
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Thu Jun 19, 2014 12:39 am

Ubivis wrote:
QuaziGNRLnose wrote:@Ubivis It might be a problem with the UV's of the model using texture repeat, and tif files aren't supported by browsers so try converting the textures to png. you might need to set "ST wrapping" to "repeat wrapping" on the texture you create for it to work properly i think for this model, but even then it might not look right because of the specific engine this model was made for or program this file was exported from so you may have to fix the uv's yourself somehow in blender.


Converting to png was the first step I did. :)

I will try to recreate the texture with blender... so far, works great. What I got so far is an editor where I can place houses (at the moment, just cubes as long I really understand the model loading) in real time and saving it as a json file to reload my design.


quest : how do u save as json in blender?
B
13
S
5
G
4
Posts: 176
Reputation: 4,429

Post » Thu Jun 19, 2014 7:03 am

tulamide wrote:It's an impressive work that you've done, and I wish you all the success you can get!

I just don't understand why? There are at dozens of free (and partly free) 3D engines out there, that do an even more impressive work. I don't think Q3D will or wants to compete with them. And C2 is a 2D game maker, optimized for 2D development. So everything 3D will have to overcome the 2D restrictions (I'm talking about the editor. What about 3D vectors, vector math, etc.). Doesn't seem to be really comfortable.

But maybe there are enough customers that prefer limited 3D in a 2D game maker instead of unlimited 3D in a free 3D engine?

Again, kill me, but I don't want to belittle your work. It's just so ... strange. I can't classify it.


For me it is simply the accessibility. Took me just 1 day of work to get into the Plugin and have good results. I tried UDK and Unity, but have not got used to it, way too difficult to handle for me alone and my really spare time (as a family father and a normal day by day job, I don't have much time to work on my projects).
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests