What's new

Aristotle's Mudlord & Rice Video

Status
Not open for further replies.

death--droid

Active member
Moderator
great. Maybe you want to try the solution I proposed a view posts ago concerning the caching. I think these 2 lines of code do the job as the correponding hires texture description should already be in memory at the time of dumping.

I'm not sure what you mean with your question concerning the full TMEM emulation.

Concerning PJ64: That's strange as it works flawlessly for me & if it shows up under 1964, it should absolutely as well hat to show up under PJ64 as it depends on the plugin not the emu. Are you sure that you compiled it in debug mode & that you have selected the right plugin in the graphic section of PJ64?

I'll try those two lines of code as soon as possible. :)
And never mind about that TMEM Emulation thing.

And about PJ64 i think i accidentally did something I'll post again if i can't get it fixed :)
 
Last edited:
H

h4tred

Guest
There is very little point to adding vertex caching.

The real bottlenecks are framebuffer emulation and texture cache usage.
 

death--droid

Active member
Moderator
gitech: i haven't done anything lately sorry :(

h4tred:Ah ok it was just something if found :)

EDIT:

Ok I'm starting to add some of the stuff from the old artisole to the newer source code :)


EDIT2:
Ok added some of the fixes by microdev.
Also added 128*,256* original texture size limit
SVN has being updated

EDIT3:
I added the following line of code to the source code(the bolded line).

Code:
	if( CDeviceBuilder::GetGeneralDeviceType() == OGL_DEVICE )
	{
		// Fix me, why I can not reuse the texture in OpenGL,
		// how can I unload texture from video card memory for OpenGL

		[b]glDeleteTextures(1, pEntry->pEnhancedTexture);[/b]
		delete pEntry;
		return;
	}

Buuut for some odd reason i seem to allways be getting this error

Code:
error C2664: 'glDeleteTextures' : cannot convert parameter 2 from 'CTexture *' to 'const GLuint *'

All help is gladly appreciated!
 
Last edited:

microdev

Member
Code:
error C2664: 'glDeleteTextures' : cannot convert parameter 2 from 'CTexture *' to 'const GLuint *'

use glDeleteTexture(pEntry->pEnhancedTexture);

glDeleteTextures(<number of textures>, <array of CTexture>) expects an array as second arg. That's why it's causing an error.
 

death--droid

Active member
Moderator
Slight problem microdev there is no function called glDeleteTexture...
And the real problem is that is has to be gluint or something like that
 
Last edited:

Cyberman

Moderator
Moderator
The OGL documentation says
---------------------------------------------
NAME
glDeleteTextures - delete named textures


C SPECIFICATION
void glDeleteTextures(
GLsizei n,
const GLuint *textures )



PARAMETERS
n Specifies the number of textures to be deleted.

textures Specifies an array of textures to be deleted.

DESCRIPTION
glDeleteTextures deletes n textures named by the elements of
the array textures. After a texture is deleted, it has no
contents or dimensionality, and its name is free for reuse
(for example by glGenTextures). If a texture that is
currently bound is deleted, the binding reverts to 0 (the
default texture).

glDeleteTextures silently ignores 0's and names that do not
correspond to existing textures.

NOTES
glDeleteTextures is available only if the GL version is 1.1
or greater.

ERRORS
GL_INVALID_VALUE is generated if n is negative.

GL_INVALID_OPERATION is generated if glDeleteTextures is
executed between the execution of glBegin and the
corresponding execution of glEnd.

ASSOCIATED GETS
glIsTexture

SEE ALSO
glAreTexturesResident, glBindTexture, glCopyTexImage1D,
glCopyTexImage2D, glGenTextures, glGet, glGetTexParameter,
glPrioritizeTextures, glTexImage1D, glTexImage2D,
glTexParameter
---------------------------------------------

are you actually passing a const GLuint * to the function? or trying to pass the integer. It must be a const too. Check your TYPES carefully and be sure you are passing the correct information.

Cyb
 

death--droid

Active member
Moderator
I think its trying to pass an integer.
I've being trying to hunt the code down but i cant seem to find it.
Hmm i have an idea on how to get this to work...
It may take awhile tho.

EDIT:
Ok at the moment my plan is to add a new var called pEnhancedTextureGL

And find all of the functions for pEnhancedTexture and make the equivalent :)

EDIT2:
Ok that idea failed....
EDIT3:
Anyone got any suggestions of what they want done?
EDIT4:
Just noticed that all the openGL files are quite old.
I'm going to replace them with the newer ones.
EDIT5:
Added some files from ATI that should help with some computability with ati graphics card.
EDIT6:
Uploaded to SVN.
 
Last edited:

Cyberman

Moderator
Moderator
I suggest you search for every instance it's called and examine the variables being passed. There is no "I think" because this is something that should be known. Add comments around each one as well if there are none. Namely what's being passed and what (the thing being passed) is a part of.

You should be passing a previously named texture to that function as well. (head scratching). The integer value is the index to the named texture.

Cyb
 

death--droid

Active member
Moderator
Ok I'll look into it then.
Once I've finished with some other stuff.

EDIT:
Ok I've done some code cleanup's
Separated lq2x filter from hq2x.

SVN has being updated :)

EDIT2:

I think the HQ4X filter is broken can anyone please confirm this.

EDIT3:Completed some more code clean up's

2x texture has now being separated.
 
Last edited:
Good job. Could you change it to Aristotle video?

Config.cpp
Code:
#define MAIN_KEY		"Software\\Aristotle\\Aristotle's Video Plugin"
#define INI_FILE		"Aristotle Video.ini"
char *project_name =	"Aristotle's N64 Video Plugin";

VC project
Code:
				OutputFile="Aristotle Video.dll"
 

death--droid

Active member
Moderator
gitech:
Thank You
Just wondering gitech can you tell me if hq4x is working or not.
It seems to play up on my computer.
I may have to remove it.

satan666:
Sure I've updated it.
 
Last edited:
Thanks death--droid.

This is Aristotle R47 include mudlordkeynuke. Added aristotle and all in one key button.
http://rapidshare.com/files/217588427/Aristotle-r47.7z

sshot3i.png
 
Last edited:

vinipsmaker

C/C++ programmer, emacs user
My studies (computer sciences, in Brazil: ciências da computação) in the university only will start in august. Then I will help (mainly with the opengl code and portability of the plugin).
 

death--droid

Active member
Moderator
Awesome glad to here that Vinipsmaker.

Anyway.
I'm just about to go try fixing stuff again :)

EDIT:
I'm going to try and get some of the missing ucode maps from Glide64 (It may take awhile to convert them)

EDIT2:
Added uCode 4
EDIT3:
Added uCode 16

EDIT4:
I think i did something wrong so i have to start over.
Conker's bad fur day seems to slow right down with the uCode

EDIT5:

Removed all uCode edits.

EDIT6:

Everyone of my idea's seem to be failing at the moment.

EDIT7:
Done some more code clean ups.
 
Last edited:

gitech

N64 Artist
Hi dd,

:flowers: Hmmm, well I appreciate your efforts and hope the project continues strong! :)

@Aristotle, microdev and everyone else, how are you and how's it goin'? :unsure:

"We" miss you! :D

Take care and TTYL,
Jay
 
Status
Not open for further replies.

Top