mr_block reports: Polar Bears have a bit of tran ... #4733

Open
opened 2023-06-10 07:31:00 +02:00 by yourland-report · 6 comments

mr_block reports a bug:

Polar Bears have a bit of transparancy on their front-left leg

Player position:

{
	x = 2046.8000488281,
	y = 1.7990000247955,
	z = 1620.1750488281
}

Player look:

{
	x = -0.030383411794901,
	y = -0.9170600771904,
	z = 0.39758983254433
}

Player information:

{
	major = 5,
	serialization_version = 29,
	patch = 0,
	max_rtt = 3.1110000610352,
	formspec_version = 6,
	ip_version = 6,
	min_rtt = 0.31700000166893,
	avg_rtt = 0.32800000905991,
	max_jitter = 2.664999961853,
	avg_jitter = 0.0040000081062317,
	connection_uptime = 4663,
	minor = 7,
	state = "Active",
	version_string = "5.7.0",
	min_jitter = 0,
	lang_code = "",
	protocol_version = 42
}

Player meta:

{
	fields = {
		["ocean_build.last_warning"] = "1.68501e+09",
		bitten = "0",
		["ocean_build.ocean_built"] = "1",
		yl_commons_player_created = "1652343809",
		yl_commons_player_joined = "1686370515",
		repellant = "0",
		yl_commons_thankyou = "35",
		xp = "68782",
		jointime = "1652343809",
		["3d_armor_inventory"] = "return {\"3d_armor:helmet_rainbow 1 6808\", \"3d_armor:chestplate_rainbow 1 6808\", \"3d_armor:leggings_rainbow 1 6808\", \"3d_armor:boots_crystal 1 5660\", \"shields:shield_rainbow 1 7440\", \"\"}",
		yl_church = "return {[\"last_death\"] = {[\"x\"] = -1916, [\"y\"] = 105, [\"z\"] = -4155}, [\"last_death_portal\"] = 1686372422, [\"last_heal\"] = 1673935419}",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		arenalib_infobox_arenaID = "0",
		played_time = "1447649",
		digged_nodes = "117096",
		placed_nodes = "18952",
		died = "235",
		crafted = "15516",
		["stamina:exhaustion"] = "143",
		inflicted_damage = "304772",
		["stamina:level"] = "13",
		partychat = "party",
		["stamina:poisoned"] = "no",
		["signslib:pos"] = "(315,-35,23188)",
		["hud_manager:choppy:waypoint_enabled"] = "y",
		hud_state = "on",
		partypvp = "true",
		punch_count = "14852"
	}
}

Log identifier


[MOD] yl_report log identifier = SbuYslxwKaEai50o1bdLcBXlQ1v13nIf

Profiler save:

profile-20230610T053100.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 1d 8h 33min 42s | max lag: 0.926s | clients (17/52): _theunknow_, AliasAlreadyTaken, Bailiff, Buzz, Cyr0, dark-knight, daydream, Dirac, flux, HorusDamocles, mr_block, Murmel, MysticalPlayz, niceride, Papi, Penelopee, Service

Teleport command:

/teleport xyz 2047 2 1620

Compass command:

/give_compass Construction SbuYslxwKaEai50o1bdLcBXlQ1v13nIf D2691E 2047 2 1620
mr_block reports a bug: > Polar Bears have a bit of transparancy on their front-left leg Player position: ``` { x = 2046.8000488281, y = 1.7990000247955, z = 1620.1750488281 } ``` Player look: ``` { x = -0.030383411794901, y = -0.9170600771904, z = 0.39758983254433 } ``` Player information: ``` { major = 5, serialization_version = 29, patch = 0, max_rtt = 3.1110000610352, formspec_version = 6, ip_version = 6, min_rtt = 0.31700000166893, avg_rtt = 0.32800000905991, max_jitter = 2.664999961853, avg_jitter = 0.0040000081062317, connection_uptime = 4663, minor = 7, state = "Active", version_string = "5.7.0", min_jitter = 0, lang_code = "", protocol_version = 42 } ``` Player meta: ``` { fields = { ["ocean_build.last_warning"] = "1.68501e+09", bitten = "0", ["ocean_build.ocean_built"] = "1", yl_commons_player_created = "1652343809", yl_commons_player_joined = "1686370515", repellant = "0", yl_commons_thankyou = "35", xp = "68782", jointime = "1652343809", ["3d_armor_inventory"] = "return {\"3d_armor:helmet_rainbow 1 6808\", \"3d_armor:chestplate_rainbow 1 6808\", \"3d_armor:leggings_rainbow 1 6808\", \"3d_armor:boots_crystal 1 5660\", \"shields:shield_rainbow 1 7440\", \"\"}", yl_church = "return {[\"last_death\"] = {[\"x\"] = -1916, [\"y\"] = 105, [\"z\"] = -4155}, [\"last_death_portal\"] = 1686372422, [\"last_heal\"] = 1673935419}", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", arenalib_infobox_arenaID = "0", played_time = "1447649", digged_nodes = "117096", placed_nodes = "18952", died = "235", crafted = "15516", ["stamina:exhaustion"] = "143", inflicted_damage = "304772", ["stamina:level"] = "13", partychat = "party", ["stamina:poisoned"] = "no", ["signslib:pos"] = "(315,-35,23188)", ["hud_manager:choppy:waypoint_enabled"] = "y", hud_state = "on", partypvp = "true", punch_count = "14852" } } ``` Log identifier ``` [MOD] yl_report log identifier = SbuYslxwKaEai50o1bdLcBXlQ1v13nIf ``` Profiler save: ``` profile-20230610T053100.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 1d 8h 33min 42s | max lag: 0.926s | clients (17/52): _theunknow_, AliasAlreadyTaken, Bailiff, Buzz, Cyr0, dark-knight, daydream, Dirac, flux, HorusDamocles, mr_block, Murmel, MysticalPlayz, niceride, Papi, Penelopee, Service ``` Teleport command: ``` /teleport xyz 2047 2 1620 ``` Compass command: ``` /give_compass Construction SbuYslxwKaEai50o1bdLcBXlQ1v13nIf D2691E 2047 2 1620 ```
AliasAlreadyTaken was assigned by yourland-report 2023-06-10 07:31:00 +02:00
Member

image

image

![image](/attachments/025a91a5-e1c0-4b92-b4f4-b869038f3970) ![image](/attachments/8490f4dc-fd29-4244-80e7-10b11355a4dc)
Member
upstream issue https://github.com/runsy/petz/issues/189
Member

Should be fixed:

For some weird reason, polar bear's leg UV coords were shifted a bit
from the texture, so it was showing translucent part of it with no
color.

I'm not sure if I can import/export these properly, so I just decided to
edit b3b file directly:
Texture coordinates are stored as a pair of consecutive little endian
floats (4 bytes each). I opened the model in blender, and used
side-panel thingy to find exact values of UV coordinates (I also tried
deleting everyting but broken faces and exporting mesh to .obj
(it's a text file) - just to confirm the coords).

Then, I converted broken coordinates to binary(hex) values, and used a
hex editor to find them. I easilty found the 4 X-coodinates I needed to
change. The Y coordinates are flipped, so I had to subtract them from
1.0 to get the values stored in the file (they are stored x,y one after
another anyway).

Then, in blender, I shifted vertices on the UV map into correct places
and got the correct coords. Converting those to hex, flipping Y and
replacing old ones, I got this edited b3d file :D

Since I didn't re-export anything, only 32 bytes (4 bytes x 2 coords
x 4 vertices) should differ from original ;)

UPD: looking at original screenshots, it looks like on the older petz the texture was shifted even more and flipped, so maybe someone already tried to fix it, but didn't move vertices all the way into place X)

Should be fixed: For some weird reason, polar bear's leg UV coords were shifted a bit from the texture, so it was showing translucent part of it with no color. I'm not sure if I can import/export these properly, so I just decided to edit b3b file directly: Texture coordinates are stored as a pair of consecutive little endian floats (4 bytes each). I opened the model in blender, and used side-panel thingy to find exact values of UV coordinates (I also tried deleting everyting but broken faces and exporting mesh to `.obj` (it's a text file) - just to confirm the coords). Then, I converted broken coordinates to binary(hex) values, and used a hex editor to find them. I easilty found the 4 X-coodinates I needed to change. The Y coordinates are flipped, so I had to subtract them from 1.0 to get the values stored in the file (they are stored x,y one after another anyway). Then, in blender, I shifted vertices on the UV map into correct places and got the correct coords. Converting those to hex, flipping Y and replacing old ones, I got this edited b3d file :D Since I didn't re-export anything, only 32 bytes (4 bytes x 2 coords x 4 vertices) should differ from original ;) UPD: looking at original screenshots, it looks like on the older petz the texture was shifted even more and flipped, so maybe someone already tried to fix it, but didn't move vertices all the way into place X)
whosit added the
4. step/ready to QA test
label 2025-04-07 10:26:36 +02:00
AliasAlreadyTaken added this to the 1.1.128 milestone 2025-04-08 10:46:27 +02:00

Is the same issue on Slightly's model? Or is that fix independent of hers?

Is the same issue on Slightly's model? Or is that fix independent of hers?
Member

I didn't have Slightly's models when I fixed this.

Slightly model that I have now has no hole, but that leg's UV is flipped upside-down.

I didn't have Slightly's models when I fixed this. Slightly model that I have now has no hole, but that leg's UV is flipped upside-down.

QA

Was a hell of a fight, but I saw the bad one and the good one. It's fixed. Thankyou whosit!

QA Was a hell of a fight, but I saw the bad one and the good one. It's fixed. Thankyou whosit!
AliasAlreadyTaken added the
ugh/QA OK
label 2025-04-27 19:24:50 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#4733
No description provided.