Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DurkaDude

Pages: 1 ... 38 39 40 41 42 [43] 44 45 46 47 48 ... 53
631
all
Alright bitch

When calculating the UV coords for textures 0 0 is the top left of a texture, 1 0 is the top right, 1 1 is the bottom right, and 0 1 is the bottom left of the texture. The order of the UV coords follows the order of the quads. Decimals cause the textures to be cropped, and negative numbers cause the textures to be flipped. You can use any combination of decimals and negative numbers and if the differences between the UV coords on separate quads are greater than 1, the texture will be repeated that many times between those quads.

It really helps if your quads in the model are all in the same order
First quad: Top left
Second quad: Bottom left
Third quad: Bottom right
Fourth quad: Top right
The face will still be rendered facing the correct way if 1 or 2 quads are flipped and you can fix backward textures by reordering the UV coords, but it's much easier if they are all in the order above as this is also the standard set by default BLB's.

Top Textures - TEX:TOP
In order for the top textures to align to the brick grid they actually need to be flipped along both the X and Y axis with the bottom left corner quad being the top right of the texture (with north being at the top of the screen)
Bottom Textures - TEX:BOTTOMEDGE, TEX:BOTTOMLOOP
Doing bottom textures is pretty hard to do without being able to plot 3D-points in your head. To do bottom textures correctly you'll need at least 4 quads if you haven't already modeled them. The edge textures extend 0.5 units from the edges of the brick while the loop textures (if the brick is larger than 1x in either dimension) start and end 0.5 units from the edge.

The edge loops should loop x times on the outer edge and x-1 times on the inner side (the side that touches the bottom loop) and should only loop 0.5 times on their width (the bottom half of the bottomEdgeLoop texture should never be visible)
The inner loop should loop x-1 and y-1 times to get it to align with default textures, but if you want to say forget it and have it actually align with the bricks like I did with Brick Tessellation add whatever the inset you used to all the UV coords.

Side Textures - TEX:SIDE
This requires some algebra, the magic equation is as follows

X is how many units wide the texture is, to calculate the Z height divide the height by 2.5 before plugging it in. This isn't exactly how default bricks do it, but it's close enough.
Basically for side textures to align on all bricks regardless of the size of the face we need to zoom in on the texture and crop out a small percentage of the edges.
Instead of using a UV coord of 0, subtract the above equation from 0
Instead of using a UV coord of 1, add 1 to the above equation.

632
Top, bottom, or side textures?

633
Add-Ons / Re: Brick Tessellation (by Jasa)
« on: May 21, 2018, 11:10:37 PM »
For version 3 I'm working on adding tessellation to special bricks,
This would be a huge pain in the ass and will probably take a few months if I don't give up.
Also here's some more screenshots



634
Could you release a limited edition of the Supermini with a black hood and a sofa chair on top?

635
Forum Games / Re: YOU LAUGH YOU LOSE v666
« on: May 21, 2018, 10:57:54 AM »

636
General Discussion / Re: DMore
« on: May 20, 2018, 11:58:53 AM »
what?
High effort comment.

Looks like fun, might join it when it's up.

637
Off Topic / Re: USPS says package delivered, never got it
« on: May 19, 2018, 10:00:10 PM »
Give it a day and then call your post office.

638
Add-Ons / Re: Event_SetBotName
« on: May 19, 2018, 06:12:56 PM »
A quick workaround is setting a shapeName on a static shape (like an invisible hat) and then mounting that to the player's head, so it's not like it's hard to do without the password.

639
Which version of cityrpg are you going to use?
uh I haven't decided that yet
There's only 2 real options
Iban's original release, or one of those stuffty Iban edits with drugs.

640
Pretty much any vehicle without a gun mounted to the top

641
Off Topic / Re: anyone else unable to quick edit
« on: May 19, 2018, 02:38:18 PM »
Here you go pal,


642
Add-Ons / Re: Event_SetBotName
« on: May 19, 2018, 02:29:14 PM »
Guys, it's not Zapk
Quote from: description.txt
Event_SetBotName
By Mocha

Another mystery solved

643
Add-Ons / Re: Event_SetBotName
« on: May 19, 2018, 01:37:08 PM »
borrowed time

644
Off Topic / Re: woman jumps off building with her 7 year old son
« on: May 18, 2018, 01:15:25 PM »
How tall of a building?

645
Add-Ons / Re: Brick Tessellation (by Jasa)
« on: May 18, 2018, 12:10:26 PM »
Update is currently pending approval on Blockland Glass
Changes include
Code: (v2.1.0) [Select]
- Fixed tessellated top textures rotating with brick and being flipped
- Side textures are now calculated mostly accurately
- Added modes for "Specular" and "Tessellated Specular" to give specular highlights on bricks while ignoring textures

Pages: 1 ... 38 39 40 41 42 [43] 44 45 46 47 48 ... 53