These are chat archives for ZaneDubya/UltimaXNA

8th
Sep 2016
Jeff Boulanger
@jeffboulanger
Sep 08 2016 18:29
@paezao do you have a reference? Off the top of my head it doesnt ring a bell
Marcelo Paez
@paezao
Sep 08 2016 20:19
run tiles are the statics :D
I figured it out
Marcelo Paez
@paezao
Sep 08 2016 20:41
Im now trying to figure out how the Z works
Marcelo Paez
@paezao
Sep 08 2016 20:48
do you know if there can be multiple statics on a single tile @jeffboulanger ?
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:02
yes
Marcelo Paez
@paezao
Sep 08 2016 22:02
Ouch
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:02
thats what HuedTile is
Marcelo Paez
@paezao
Sep 08 2016 22:02
That explains a lot
huedtile?
    private unsafe HuedTile[][][] ReadStaticBlock(int x, int y)
they can be hued
    internal short _hue;
    internal short _id;
    internal sbyte _z;
Marcelo Paez
@paezao
Sep 08 2016 22:04
ah okay
can you give me some insight on the Z?
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:06
tile.y -= 4 * z
Marcelo Paez
@paezao
Sep 08 2016 22:06
simple as that?
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:06
i think so
Marcelo Paez
@paezao
Sep 08 2016 22:06
even for ground?
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:06
ya
Marcelo Paez
@paezao
Sep 08 2016 22:06
and where did you guys get that 4 from? lol
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:06
for things on the ground tile i think u have to add 4 per stack size
the client
Marcelo Paez
@paezao
Sep 08 2016 22:06
-= as in upwards right?
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:06
ya
so basically, if you have 5 things stacked each one would be tile.y -= 4 z + stackIndex 4
stupid thing formatted out my - and * symbols lol
Marcelo Paez
@paezao
Sep 08 2016 22:07
haha
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:07
tile.y -= (4 z) + (stackIndex 4)
fucking thing
u get the idea
Marcelo Paez
@paezao
Sep 08 2016 22:08
I get it
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:08
  • means italic?
or bullet
haha
dumb gitter
Marcelo Paez
@paezao
Sep 08 2016 22:08
haha
cool ill try that man
I should use my center z as as offset though right
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:09
ya
player z
center z
whateve
Marcelo Paez
@paezao
Sep 08 2016 22:09
yes
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:09
r
Marcelo Paez
@paezao
Sep 08 2016 22:09
  • 4 as well?
multiplied by 4
hahaha
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:09
z is always * 4
Marcelo Paez
@paezao
Sep 08 2016 22:09
damn formatter
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:10
if you start with is a bullet
if you have 2
in the same line its italic
just liek that
not even same line :/
Marcelo Paez
@paezao
Sep 08 2016 22:10
nice it looks kinda okay now
need to do the stretching
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:10
stretching sux :(
u only stretch in 3/4 directions
you basically stretch UO south east
Marcelo Paez
@paezao
Sep 08 2016 22:11
also need to have multiple statics per tile
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:11
ya
Marcelo Paez
@paezao
Sep 08 2016 22:11
and sort them by Z before drawing I guess
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:12
for stretching you stretch the current tile to match z to the east, south east and south in UO coords
Marcelo Paez
@paezao
Sep 08 2016 22:14
interesting
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:14
then you have to calculate the normals for shading ;)
oh what fun UO is
;)
it impresses me they did this shit in C, with GDI
Marcelo Paez
@paezao
Sep 08 2016 22:15
haha
yea shading
ill leave that for later haha
need to get the basic rendering okay first
need to make a C vector for statics
so I should check every tile for their neighbours Z
and stretch its texture accordingly to match the neighbour Z
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:20
only the 3 neighbors
east, south east and south
Marcelo Paez
@paezao
Sep 08 2016 22:20
E, SE and S
cool
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:20
then 3 of your 5 vertices render at the same Z
as those neighbors
Marcelo Paez
@paezao
Sep 08 2016 22:21
ahh nice
"Z"
as in Y + offset
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:21
ya
Marcelo Paez
@paezao
Sep 08 2016 22:21
nice
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:21
fun times
;)
Marcelo Paez
@paezao
Sep 08 2016 22:21
https://github.com/paezao/neo-uo -> this is the rep if you wanna checkout the progress from time to time lol
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:22
C hurts my eyes
;)
Marcelo Paez
@paezao
Sep 08 2016 22:24
haha
I like it
gotta go now
thanks for the tips!
Jeff Boulanger
@jeffboulanger
Sep 08 2016 22:24
np
gl