Movies
Movies
Reviews
Reviews
Awards
Awards
Mods
Mods
3dmm.com
3dmm.com
About
About
Stats
Stats
Uploader
Uploader
Links
Links
Go Back   3dmm.com > 3D Movie Maker > 3DMM Chat
User Name
Password

Reply
 
Thread Tools Display Modes
Old 12-08-2023, 03:03 AM   #1
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
Have an issue in 7Gen, what can I do to solve it?

Hi yall, newcomer here.
I've downloaded 7Gen and i'm planning to do some custom scenes with some cool walpapers (in .jpg format) i have on my laptop. For that i should use the "background2.vxp" tool, right? Cuz that's what i used to try to make one.
The thing is, i compressed my image (39 kilobytes) and also compressed a depth map i made for it using Krita. I did everything right (i think), but while the mod is being processed, the program freezes, stops working and closes. At the error log it reads "long int too large to convert". What should i do?????
BryceBro is offline   Reply With Quote
Old 12-08-2023, 04:54 AM   #2
Plopilpy
3dmm.com President
Plopilpy's Avatar
Join Date: May 2020
Posts: 5,071
what res is the image? it should be 544x306


Plopilpy is offline   Reply With Quote
Old 12-09-2023, 12:53 AM   #3
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
The two images (the image itself and the depth map) are now both in 544x306.
Here they are in question:




The error keeps happening.
BryceBro is offline   Reply With Quote
Old 12-09-2023, 07:32 AM   #4
Plopilpy
3dmm.com President
Plopilpy's Avatar
Join Date: May 2020
Posts: 5,071
are they both 8-bit bmps? it helps to apply an indexed palette, in this case 3dmm's palette. since krita has no indexed colour support, you can use GIMP. open the image in GIMP, and select windows > dockable dialogs > palettes then right click on the palettes section that opens and import that .pal file. now, hit image > mode > indexed and select that palette in the menu.

that image is hella awesome btw. does "brycebro" imply you use bryce3D?


Plopilpy is offline   Reply With Quote
Old 12-09-2023, 03:26 PM   #5
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
I'll try to do that then. Thanks!
But that applies to the depth map too?

Yes, my username is a reference to bryce3D. But the image was not created by me, i just searched for "bryce3D renders" and selected some images i found cool and that could have potential for a 3Dmm scene. I think i have 11 more of this kind. When i finish the mod i'll link it here.
BryceBro is offline   Reply With Quote
Old 12-12-2023, 12:16 AM   #6
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
Quote:
Originally Posted by Plopilpy
Open the image in GIMP, and select windows > dockable dialogs > palettes then right click on the palettes section that opens and import that .pal file.
I tried to import the .pal file into the image through GIMP's import pallete tool, but an error message shows up when i try to do it: "Unknown palette file type: C:\Users\Dell\Downloads\3dmm.pal" or smth along those lines
BryceBro is offline   Reply With Quote
Old 12-12-2023, 02:10 PM   #7
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
Plopilpy do you have any idea of what can i do to solve this error? (the palette error on GIMP)
BryceBro is offline   Reply With Quote
Old 12-12-2023, 02:46 PM   #8
Plopilpy
3dmm.com President
Plopilpy's Avatar
Join Date: May 2020
Posts: 5,071
did you make a new palette slot before right-clicking on the slot and importing it? it worked for me


Plopilpy is offline   Reply With Quote
Old 12-12-2023, 04:48 PM   #9
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
I did that and it still didn't work. I think there's a problem with the .pal file itself. I tried using other palettes i downloaded from the internet (in .pal files) this way and it worked.
BryceBro is offline   Reply With Quote
Old 12-12-2023, 05:47 PM   #10
Plopilpy
3dmm.com President
Plopilpy's Avatar
Join Date: May 2020
Posts: 5,071
try importing this BMP instead, by opening the BMP and selecting import palette > image


Plopilpy is offline   Reply With Quote
Old 12-12-2023, 08:21 PM   #11
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
Quote:
Originally Posted by Plopilpy
try importing this BMP instead, by opening the BMP and selecting import palette > image
I did that. I converted the two images into 8 bit bitmaps and was successfully able to import the palette. All of this while they are in 544x306. Here's them now:




... but the same error still happens in 7Gen. At the error log it still reads "long int too large to convert". I give up on doing this mod. I'm about to go insane
BryceBro is offline   Reply With Quote
Old 12-13-2023, 04:20 PM   #12
Holmstrom
Junior Member
Holmstrom's Avatar
Join Date: Oct 2007
Posts: 114
It's not a palette issue. Even plugging the .jpgs straight into 7gen should convert just fine. Post your error log!

Also, that depth map is not gonna give you the result you're looking for. It's reversed (nearer surfaces should be darker) and way too high contrast.
Holmstrom is offline   Reply With Quote
Old 12-13-2023, 07:07 PM   #13
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
Quote:
Originally Posted by Holmstrom
Post your error log!
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
Windows NT/2K/XP (6.2 , build 9200)
Traceback (most recent call last):
File "C:\Users\Dell\Downloads\7gen03b\7gen03b\7gen.pyw" , line 33, in ?
sevengeninterface.run(sys.argv[1:])
File "code\sevengeninterface.py", line 149, in run
gui.run()
File "code\sevengeninterface.py", line 132, in run
ui.event(ev)
File "code\sockgui.py", line 257, in event
self.topwindow.mouseUp(event.pos,event.button)
File "code\sockgui.py", line 117, in mouseUp
if child.mouseUp(pos,button):
File "code\sockgui.py", line 878, in mouseUp
self.clicked()
File "code\sockgui.py", line 883, in clicked
self.callback(self.data)
File "code\sevengeninterface.py", line 122, in runConverter
diereason=module.RunConverter('7gen: ')
File "bin\background2vxpGUI.py", line 204, in RunConverter
return gui.run()
File "code\converterbase.py", line 17, in run
ui.event(ev)
File "code\sockgui.py", line 257, in event
self.topwindow.mouseUp(event.pos,event.button)
File "code\sockgui.py", line 117, in mouseUp
if child.mouseUp(pos,button):
File "code\sockgui.py", line 421, in mouseUp
self.clicked()
File "code\sockgui.py", line 409, in clicked
self.callback(self.data)
File "bin\background2vxpGUI.py", line 164, in createVXP
background,depth,preview,dither,uniqueid,self.prog ressCallback)
File "bin\background2vxp.py", line 202, in CreateBackgroundFromImages
Save3CN(outvxp)
File "bin\background2vxp.py", line 106, in Save3CN
outzip.writestr(shortname+'.3cn',vxp3cn.getData())
File "code\lib3dmm.py", line 95, in getData
self.saveToFile(strio)
File "code\lib3dmm.py", line 114, in saveToFile
index=self.makeIndex(quadaddys)
File "code\lib3dmm.py", line 142, in makeIndex
qe,qelen=self.makeQuadEntry(offset,quad)
File "code\lib3dmm.py", line 160, in makeQuadEntry
qe=pack('<4s 2L B',quad.type[::-1],quad.id,offset,quad.mode)
OverflowError: long int too large to convert

Quote:
Originally Posted by Holmstrom
Also, that depth map is not gonna give you the result you're looking for. It's reversed (nearer surfaces should be darker) and way too high contrast.
I'm almost sure that my depth map is right with the colors, but i agree with you about the contrast. I'm gonna make a revised version of it.
BryceBro is offline   Reply With Quote
Old 12-13-2023, 08:32 PM   #14
Holmstrom
Junior Member
Holmstrom's Avatar
Join Date: Oct 2007
Posts: 114
You're using a version of 7gen from almost two decades ago! Try grabbing the latest one from here and follow the instructions on installing. Maybe that'll fix it.

Quote:
Originally Posted by BryceBro
I'm almost sure that my depth map is right with the colors, but i agree with you about the contrast. I'm gonna make a revised version of it.

Black should represent surfaces closest to the camera while white represents the farthest, so the colors need to be inverted

And yeah, you need to lower the contrast until there's barely any information left. I haven't personally had a lot of success with depth maps in 7gen because of it. A value shift as small as #7b7b7b to #7e7e7e represents an enormous difference in distance, so you won't be able to get a lot of detail with it
Holmstrom is offline   Reply With Quote
Old 12-13-2023, 09:30 PM   #15
BryceBro
Junior Member

Join Date: Dec 2023
Posts: 16
Thanks a lot!!!!!! I was finally able to get it working!!!!! Thanks!!!!!

And you were also right with that depth map thing. Guess ill have to make a new one
BryceBro is offline   Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


3dmm.com

Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.